python310Packages.django-postgresql-netfields: add changelog to meta

- disable on unsupported Python releases
- add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2022-12-02 08:55:14 +01:00 committed by GitHub
parent cad27dd109
commit 2210841466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; [ ];
};
}