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 { buildPythonPackage rec {
version = "1.3.0";
pname = "django-postgresql-netfields"; pname = "django-postgresql-netfields";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jimfunk"; owner = "jimfunk";
@ -20,6 +23,12 @@ buildPythonPackage rec {
hash = "sha256-I+X4yfadtiiZlW7QhfwVbK1qyWn/khH9fWXszCo9uro="; hash = "sha256-I+X4yfadtiiZlW7QhfwVbK1qyWn/khH9fWXszCo9uro=";
}; };
propagatedBuildInputs = [
django
netaddr
six
];
# tests need a postgres database # tests need a postgres database
doCheck = false; doCheck = false;
@ -33,15 +42,15 @@ buildPythonPackage rec {
# psycopg2 # psycopg2
# ]; # ];
propagatedBuildInputs = [ pythonImportsCheck = [
django "netfields"
netaddr
six
]; ];
meta = with lib; { meta = with lib; {
description = "Django PostgreSQL netfields implementation"; description = "Django PostgreSQL netfields implementation";
homepage = "https://github.com/jimfunk/django-postgresql-netfields"; homepage = "https://github.com/jimfunk/django-postgresql-netfields";
changelog = "https://github.com/jimfunk/django-postgresql-netfields/blob/v${version}/CHANGELOG";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = with maintainers; [ ];
}; };
} }