blob: c50a3909c33290314a5f4e4ade2ec9142540e06a (
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
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
django-stubs,
django,
fetchFromGitHub,
parameterized,
pytest-cov-stub,
pytest-django,
pytestCheckHook,
pythonOlder,
hatchling,
hatch-vcs,
}:
buildPythonPackage rec {
pname = "django-modeltranslation";
version = "0.19.17";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "deschler";
repo = "django-modeltranslation";
tag = "v${version}";
hash = "sha256-SaCuo/vnH7fDZnOZvrV3HbLtq6q2bTzhPvBCdrzukoA=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [ django ];
nativeCheckInputs = [
django-stubs
pytestCheckHook
pytest-cov-stub
pytest-django
parameterized
];
pythonImportsCheck = [ "modeltranslation" ];
meta = {
description = "Translates Django models using a registration approach";
homepage = "https://github.com/deschler/django-modeltranslation";
changelog = "https://github.com/deschler/django-modeltranslation/blob/v${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ augustebaum ];
};
}
|