Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildPythonPackage, fetchFromGitHub, setuptools, django, dj-database-url, pytest-django, pytestCheckHook,}:
buildPythonPackage rec { pname = "django-polymorphic"; version = "4.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "django-polymorphic"; repo = "django-polymorphic"; tag = "v${version}"; hash = "sha256-cEV9gnc9gLpAVmYkzSaQwDbgXsklMTq71edndDJeP9E="; };
patches = [ # https://github.com/jazzband/django-polymorphic/issues/616 ./django-5.1-compat.patch ];
build-system = [ setuptools ];
dependencies = [ django ];
nativeCheckInputs = [ dj-database-url pytest-django pytestCheckHook ];
pythonImportsCheck = [ "polymorphic" ];
meta = with lib; { changelog = "https://github.com/jazzband/django-polymorphic/releases/tag/${src.tag}"; homepage = "https://github.com/django-polymorphic/django-polymorphic"; description = "Improved Django model inheritance with automatic downcasting"; license = licenses.bsd3; maintainers = [ ]; };}