nixpkgs/pkgs/development/python-modules/django-postgresql-netfields/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, django
, netaddr
, six
, fetchFromGitHub
# required for tests
#, djangorestframework
#, psycopg2
}:
buildPythonPackage rec {
pname = "django-postgresql-netfields";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jimfunk";
repo = pname;
rev = "v${version}";
hash = "sha256-I+X4yfadtiiZlW7QhfwVbK1qyWn/khH9fWXszCo9uro=";
};
propagatedBuildInputs = [
django
netaddr
six
];
# tests need a postgres database
doCheck = false;
# keeping the dependencies below as comment for reference
# checkPhase = ''
# python manage.py test
# '';
# buildInputs = [
# djangorestframework
# psycopg2
# ];
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; [ ];
};
}