blob: e42cb80f4b2b6078efc87212236d8c00d0852da3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
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 = [ ];
};
}
|