Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, django 4, netaddr 5, six 6, fetchFromGitHub 7, pythonOlder 8# required for tests 9#, djangorestframework 10#, psycopg2 11}: 12 13buildPythonPackage rec { 14 pname = "django-postgresql-netfields"; 15 version = "1.3.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "jimfunk"; 22 repo = pname; 23 rev = "v${version}"; 24 hash = "sha256-I+X4yfadtiiZlW7QhfwVbK1qyWn/khH9fWXszCo9uro="; 25 }; 26 27 propagatedBuildInputs = [ 28 django 29 netaddr 30 six 31 ]; 32 33 # tests need a postgres database 34 doCheck = false; 35 36 # keeping the dependencies below as comment for reference 37 # checkPhase = '' 38 # python manage.py test 39 # ''; 40 41 # buildInputs = [ 42 # djangorestframework 43 # psycopg2 44 # ]; 45 46 # Requires psycopg2 47 # pythonImportsCheck = [ 48 # "netfields" 49 # ]; 50 51 meta = with lib; { 52 description = "Django PostgreSQL netfields implementation"; 53 homepage = "https://github.com/jimfunk/django-postgresql-netfields"; 54 changelog = "https://github.com/jimfunk/django-postgresql-netfields/blob/v${version}/CHANGELOG"; 55 license = licenses.bsd2; 56 maintainers = with maintainers; [ ]; 57 }; 58}