Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 55 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, hatchling, django, dj-database-url, django-test-migrations, pytest-cov-stub, pytest-django, pytest-playwright, pytestCheckHook,}:
buildPythonPackage rec { pname = "django-polymorphic"; version = "4.5.2"; pyproject = true;
src = fetchFromGitHub { owner = "django-polymorphic"; repo = "django-polymorphic"; tag = "v${version}"; hash = "sha256-8MZrQErWWd4GiNaIEnGvj4jONGFzsi3bu5NervF4AnE="; };
build-system = [ hatchling ];
dependencies = [ django ];
nativeCheckInputs = [ dj-database-url django-test-migrations pytest-cov-stub pytest-django pytest-playwright pytestCheckHook ];
disabledTestPaths = [ # RuntimeError: Playwright failed to start. This often happens if browser drivers are missing. "src/polymorphic/tests/test_admin.py" "src/polymorphic/tests/examples/views/test.py::ViewExampleTests::test_view_example" ];
pythonImportsCheck = [ "polymorphic" ];
meta = { 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 = lib.licenses.bsd3; maintainers = [ ]; };}