Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 django, 7 dj-database-url, 8}: 9 10buildPythonPackage rec { 11 pname = "django-polymorphic"; 12 version = "3.1"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "django-polymorphic"; 17 repo = "django-polymorphic"; 18 rev = "v${version}"; 19 hash = "sha256-JJY+FoMPSnWuSsNIas2JedGJpdm6RfPE3E1VIjGuXIc="; 20 }; 21 22 propagatedBuildInputs = [ django ]; 23 24 nativeCheckInputs = [ dj-database-url ]; 25 26 checkPhase = '' 27 ${python.interpreter} runtests.py 28 ''; 29 30 pythonImportsCheck = [ "polymorphic" ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/django-polymorphic/django-polymorphic"; 34 description = "Improved Django model inheritance with automatic downcasting"; 35 license = licenses.bsd3; 36 maintainers = [ ]; 37 }; 38}