tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.django-json-widget: init at 2.0.1
Jonas Heinrich
1 year ago
bf95ef2b
c6667b33
+53
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
django-json-widget
default.nix
top-level
python-packages.nix
+51
pkgs/development/python-modules/django-json-widget/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
fetchFromGitHub,
5
5
+
django,
6
6
+
pythonOlder,
7
7
+
setuptools,
8
8
+
python,
9
9
+
pytestCheckHook,
10
10
+
pytest-django,
11
11
+
}:
12
12
+
13
13
+
buildPythonPackage rec {
14
14
+
pname = "django-json-widget";
15
15
+
version = "2.0.1";
16
16
+
pyproject = true;
17
17
+
18
18
+
disabled = pythonOlder "3.6";
19
19
+
20
20
+
src = fetchFromGitHub {
21
21
+
owner = "jmrivas86";
22
22
+
repo = "django-json-widget";
23
23
+
rev = "refs/tags/v${version}";
24
24
+
hash = "sha256-GY6rYY//n8kkWCJZk6OY+EOBv62ocNovNmE/ai8VCn4=";
25
25
+
};
26
26
+
27
27
+
build-system = [ setuptools ];
28
28
+
29
29
+
dependencies = [ django ];
30
30
+
31
31
+
nativeCheckInputs = [
32
32
+
pytest-django
33
33
+
pytestCheckHook
34
34
+
];
35
35
+
36
36
+
preCheck = ''
37
37
+
export DJANGO_SETTINGS_MODULE=tests.settings
38
38
+
'';
39
39
+
40
40
+
pythonImportCheck = [ "django_json_widget" ];
41
41
+
42
42
+
meta = {
43
43
+
description = "Alternative widget that makes it easy to edit the jsonfield field of django";
44
44
+
homepage = "https://github.com/jmrivas86/django-json-widget";
45
45
+
changelog = "https://github.com/jmrivas86/django-json-widget/blob/v${version}/CHANGELOG.rst";
46
46
+
# Contradictory license specifications
47
47
+
# https://github.com/jmrivas86/django-json-widget/issues/93
48
48
+
license = lib.licenses.mit;
49
49
+
maintainers = [ lib.maintainers.onny ];
50
50
+
};
51
51
+
}
+2
pkgs/top-level/python-packages.nix
···
3424
3424
3425
3425
django-jquery-js = callPackage ../development/python-modules/django-jquery-js { };
3426
3426
3427
3427
+
django-json-widget = callPackage ../development/python-modules/django-json-widget { };
3428
3428
+
3427
3429
django-js-asset = callPackage ../development/python-modules/django-js-asset { };
3428
3430
3429
3431
django-js-reverse = callPackage ../development/python-modules/django-js-reverse { };