about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-postgresql-netfields
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-12-02 08:55:14 +0100
committerGitHub <noreply@github.com>2022-12-02 08:55:14 +0100
commit2210841466d2d45d073bf6d43ab18bdee4d74ae9 (patch)
treef63a825ce8da170b53797500ed7b881575dff78d /pkgs/development/python-modules/django-postgresql-netfields
parentcad27dd109f40ea474ea3acdda9d5fd8faedd0ea (diff)
python310Packages.django-postgresql-netfields: add changelog to meta
- disable on unsupported Python releases
- add pythonImportsCheck
Diffstat (limited to 'pkgs/development/python-modules/django-postgresql-netfields')
-rw-r--r--pkgs/development/python-modules/django-postgresql-netfields/default.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/django-postgresql-netfields/default.nix b/pkgs/development/python-modules/django-postgresql-netfields/default.nix
index 2e440ed4f0637..a78d45a236d16 100644
--- a/pkgs/development/python-modules/django-postgresql-netfields/default.nix
+++ b/pkgs/development/python-modules/django-postgresql-netfields/default.nix
@@ -10,8 +10,11 @@
 }:
 
 buildPythonPackage rec {
-  version = "1.3.0";
   pname = "django-postgresql-netfields";
+  version = "1.3.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "jimfunk";
@@ -20,6 +23,12 @@ buildPythonPackage rec {
     hash = "sha256-I+X4yfadtiiZlW7QhfwVbK1qyWn/khH9fWXszCo9uro=";
   };
 
+  propagatedBuildInputs = [
+    django
+    netaddr
+    six
+  ];
+
   # tests need a postgres database
   doCheck = false;
 
@@ -33,15 +42,15 @@ buildPythonPackage rec {
     # psycopg2
   # ];
 
-  propagatedBuildInputs = [
-    django
-    netaddr
-    six
+  pythonImportsCheck = [
+    "netfields"
   ];
 
   meta = with lib; {
     description = "Django PostgreSQL netfields implementation";
     homepage = "https://github.com/jimfunk/django-postgresql-netfields";
+    changelog = "https://github.com/jimfunk/django-postgresql-netfields/blob/v${version}/CHANGELOG";
     license = licenses.bsd2;
+    maintainers = with maintainers; [ ];
   };
 }