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