nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 55 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 django, 7 dj-database-url, 8 django-test-migrations, 9 pytest-cov-stub, 10 pytest-django, 11 pytest-playwright, 12 pytestCheckHook, 13}: 14 15buildPythonPackage rec { 16 pname = "django-polymorphic"; 17 version = "4.5.2"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "django-polymorphic"; 22 repo = "django-polymorphic"; 23 tag = "v${version}"; 24 hash = "sha256-8MZrQErWWd4GiNaIEnGvj4jONGFzsi3bu5NervF4AnE="; 25 }; 26 27 build-system = [ hatchling ]; 28 29 dependencies = [ django ]; 30 31 nativeCheckInputs = [ 32 dj-database-url 33 django-test-migrations 34 pytest-cov-stub 35 pytest-django 36 pytest-playwright 37 pytestCheckHook 38 ]; 39 40 disabledTestPaths = [ 41 # RuntimeError: Playwright failed to start. This often happens if browser drivers are missing. 42 "src/polymorphic/tests/test_admin.py" 43 "src/polymorphic/tests/examples/views/test.py::ViewExampleTests::test_view_example" 44 ]; 45 46 pythonImportsCheck = [ "polymorphic" ]; 47 48 meta = { 49 changelog = "https://github.com/jazzband/django-polymorphic/releases/tag/${src.tag}"; 50 homepage = "https://github.com/django-polymorphic/django-polymorphic"; 51 description = "Improved Django model inheritance with automatic downcasting"; 52 license = lib.licenses.bsd3; 53 maintainers = [ ]; 54 }; 55}