Skip to content

Commit

Permalink
python3Packages.django-json-widget: init at 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 24, 2024
1 parent dc1872b commit 2190e88
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/django-json-widget/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchPypi,
django,
pythonOlder,
pytestCheckHook,
setuptools,
}:

buildPythonPackage rec {
pname = "django-json-widget";
version = "2.0.1";
pyproject = true;

disabled = pythonOlder "3.6";

src = fetchPypi {
inherit pname version;
hash = "sha256-rbTKsX/loEE5A319hHJTaVMO81uRLDeQ06exP5k1E1g=";
};

build-system = [ setuptools ];

dependencies = [ django ];

checkInputs = [ pytestCheckHook ];

pythonImportCheck = [ "django_json_widget" ];

meta = {
description = "Alternative widget that makes it easy to edit the jsonfield field of django";
homepage = "https://github.com/jmrivas86/django-json-widget";
changelog = "https://github.com/jmrivas86/django-json-widget/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.onny ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3428,6 +3428,8 @@ self: super: with self; {

django-jquery-js = callPackage ../development/python-modules/django-jquery-js { };

django-json-widget = callPackage ../development/python-modules/django-json-widget { };

django-js-asset = callPackage ../development/python-modules/django-js-asset { };

django-js-reverse = callPackage ../development/python-modules/django-js-reverse { };
Expand Down

0 comments on commit 2190e88

Please sign in to comment.