2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2019-08-06 16:54:14 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
|
|
|
, netaddr
|
|
|
|
, six
|
|
|
|
, fetchFromGitHub
|
|
|
|
# required for tests
|
|
|
|
#, djangorestframework
|
|
|
|
#, psycopg2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-postgresql-netfields";
|
2022-12-02 08:55:14 +01:00
|
|
|
version = "1.3.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-08-06 16:54:14 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jimfunk";
|
2020-11-01 23:39:49 +01:00
|
|
|
repo = pname;
|
2019-08-06 16:54:14 +02:00
|
|
|
rev = "v${version}";
|
2022-12-01 09:47:55 -08:00
|
|
|
hash = "sha256-I+X4yfadtiiZlW7QhfwVbK1qyWn/khH9fWXszCo9uro=";
|
2019-08-06 16:54:14 +02:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:55:14 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
netaddr
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2019-08-06 16:54:14 +02:00
|
|
|
# tests need a postgres database
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# keeping the dependencies below as comment for reference
|
|
|
|
# checkPhase = ''
|
|
|
|
# python manage.py test
|
|
|
|
# '';
|
|
|
|
|
|
|
|
# buildInputs = [
|
|
|
|
# djangorestframework
|
|
|
|
# psycopg2
|
|
|
|
# ];
|
|
|
|
|
2022-12-02 08:55:14 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"netfields"
|
2019-08-06 16:54:14 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-08-06 16:54:14 +02:00
|
|
|
description = "Django PostgreSQL netfields implementation";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/jimfunk/django-postgresql-netfields";
|
2022-12-02 08:55:14 +01:00
|
|
|
changelog = "https://github.com/jimfunk/django-postgresql-netfields/blob/v${version}/CHANGELOG";
|
2019-08-06 16:54:14 +02:00
|
|
|
license = licenses.bsd2;
|
2022-12-02 08:55:14 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-08-06 16:54:14 +02:00
|
|
|
};
|
|
|
|
}
|