Files
nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
938 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
dj-database-url,
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-polymorphic";
version = "4.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "django-polymorphic";
repo = "django-polymorphic";
tag = "v${version}";
hash = "sha256-QcJUKGhWPUHhVVsEZhhjN411Pz4Wn7OL2fhotPOGVm4=";
};
build-system = [ setuptools ];
dependencies = [ django ];
nativeCheckInputs = [
dj-database-url
pytest-django
pytestCheckHook
];
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 = [ ];
};
}