Unverified Commit 4f72f722 authored by Defelo's avatar Defelo
Browse files

python312Packages.django-postgres-partition: 0.1.1 -> 0.1.4

parent be2b79d0
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitLab,
  setuptools,
  django,
  psycopg,
  python-dateutil,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "django-postgres-partition";
  version = "0.1.1";
  version = "0.1.4";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "django_postgres_partition";
    hash = "sha256-KUrgnfUXWyRerW4dqtVZO9bu5jHYnHcVOIg97w695RU=";
  src = fetchFromGitLab {
    owner = "burke-software";
    repo = "django-postgres-partition";
    tag = version;
    hash = "sha256-Wk+m75gO9iClN9/vXGBl27VcmqyE6c1xpQX+X1qcKuU=";
  };

  build-system = [ setuptools ];

  pythonRelaxDeps = [
    "django"
  ];
  pythonRelaxDeps = [ "django" ];

  dependencies = [
    django
@@ -31,13 +31,17 @@ buildPythonPackage rec {
    python-dateutil
  ];

  doCheck = false; # pypi version doesn't ship with tests
  # tests don't work yet, see https://gitlab.com/burke-software/django-postgres-partition/-/issues/4
  doCheck = false;

  pythonImportsCheck = [ "psql_partition" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Partition support for django, based on django-postgres-extra";
    homepage = "https://gitlab.com/burke-software/django-postgres-partition";
    changelog = "https://gitlab.com/burke-software/django-postgres-partition/-/releases/${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ defelo ];
  };