python3Packages.django-json-widget: init at 2.0.1 (#351419)

authored by Martin Weinelt and committed by GitHub 2be63fc8 807e9154

+53
+51
pkgs/development/python-modules/django-json-widget/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + django, 6 + pythonOlder, 7 + setuptools, 8 + python, 9 + pytestCheckHook, 10 + pytest-django, 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "django-json-widget"; 15 + version = "2.0.1"; 16 + pyproject = true; 17 + 18 + disabled = pythonOlder "3.6"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "jmrivas86"; 22 + repo = "django-json-widget"; 23 + rev = "refs/tags/v${version}"; 24 + hash = "sha256-GY6rYY//n8kkWCJZk6OY+EOBv62ocNovNmE/ai8VCn4="; 25 + }; 26 + 27 + build-system = [ setuptools ]; 28 + 29 + dependencies = [ django ]; 30 + 31 + nativeCheckInputs = [ 32 + pytest-django 33 + pytestCheckHook 34 + ]; 35 + 36 + preCheck = '' 37 + export DJANGO_SETTINGS_MODULE=tests.settings 38 + ''; 39 + 40 + pythonImportCheck = [ "django_json_widget" ]; 41 + 42 + meta = { 43 + description = "Alternative widget that makes it easy to edit the jsonfield field of django"; 44 + homepage = "https://github.com/jmrivas86/django-json-widget"; 45 + changelog = "https://github.com/jmrivas86/django-json-widget/blob/v${version}/CHANGELOG.rst"; 46 + # Contradictory license specifications 47 + # https://github.com/jmrivas86/django-json-widget/issues/93 48 + license = lib.licenses.mit; 49 + maintainers = [ lib.maintainers.onny ]; 50 + }; 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 + django-json-widget = callPackage ../development/python-modules/django-json-widget { }; 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 { };