blob: 46f066f3246d8209e1513c27322a5b1d228b1cdd (
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
|
{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
nodejs,
packaging,
python,
setuptools,
six,
}:
buildPythonPackage (finalAttrs: {
pname = "django-js-reverse";
version = "0.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "vintasoftware";
repo = "django-js-reverse";
tag = "v${finalAttrs.version}";
hash = "sha256-0S1g8tLWaJVV2QGPeiBOevhz9f0ueINxA9HOcnXuyYg=";
};
build-system = [ setuptools ];
dependencies = [
django
packaging
];
nativeCheckInputs = [
nodejs
six
];
# Js2py is needed for tests but it's unmaintained and insecure
doCheck = false;
checkPhase = ''
${python.interpreter} django_js_reverse/tests/unit_tests.py
'';
pythonImportsCheck = [ "django_js_reverse" ];
meta = {
description = "Javascript URL handling for Django";
homepage = "https://django-js-reverse.readthedocs.io/";
changelog = "https://github.com/vintasoftware/django-js-reverse/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
})
|