1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 django, 7 dj-database-url, 8 pytest-django, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "django-polymorphic"; 14 version = "4.1.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "django-polymorphic"; 19 repo = "django-polymorphic"; 20 tag = "v${version}"; 21 hash = "sha256-QcJUKGhWPUHhVVsEZhhjN411Pz4Wn7OL2fhotPOGVm4="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ django ]; 27 28 nativeCheckInputs = [ 29 dj-database-url 30 pytest-django 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ "polymorphic" ]; 35 36 meta = with lib; { 37 changelog = "https://github.com/jazzband/django-polymorphic/releases/tag/${src.tag}"; 38 homepage = "https://github.com/django-polymorphic/django-polymorphic"; 39 description = "Improved Django model inheritance with automatic downcasting"; 40 license = licenses.bsd3; 41 maintainers = [ ]; 42 }; 43}