Files
nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix
T
Martin Weinelt a8d1ea04af python3Packages.django-polymorphic: 4.1.0 -> 4.5.2
https://github.com/jazzband/django-polymorphic/releases/tag/v4.5.2

This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:08 +01:00

56 lines
1.3 KiB
Nix

{
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 = [ ];
};
}