From ae1430edcace78833f8c3d4915bfa0d48182b53e Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Fri, 27 Dec 2024 11:26:19 +0100 Subject: [PATCH] pythonPackages.jsonpath-python: init at 1.0.6 --- .../jsonpath-python/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/jsonpath-python/default.nix diff --git a/pkgs/development/python-modules/jsonpath-python/default.nix b/pkgs/development/python-modules/jsonpath-python/default.nix new file mode 100644 index 0000000000000..ac8dc699f8458 --- /dev/null +++ b/pkgs/development/python-modules/jsonpath-python/default.nix @@ -0,0 +1,27 @@ +{ + buildPythonPackage, + fetchPypi, + lib, + pytestCheckHook, + setuptools, +}: +buildPythonPackage rec { + pname = "jsonpath-python"; + version = "1.0.6"; + pyproject = true; + src = fetchPypi { + inherit pname version; + hash = "sha256-3Vvkpy2KKZXD9YPPgr880alUTP2r8tIllbZ6/wc0lmY="; + }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "jsonpath" ]; + pytestFlagsArray = [ "test/test*.py" ]; + + meta = with lib; { + homepage = "https://github.com/sean2077/jsonpath-python"; + description = "A more powerful JSONPath implementations in modern python."; + maintainers = with maintainers; [ dadada ]; + license = with licenses; [ mit ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 78a8674d3e1d4..36ec58f3f8848 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6719,6 +6719,8 @@ self: super: with self; { jsonpath-ng = callPackage ../development/python-modules/jsonpath-ng { }; + jsonpath-python = callPackage ../development/python-modules/jsonpath-python { }; + jsonpickle = callPackage ../development/python-modules/jsonpickle { }; jsonpointer = callPackage ../development/python-modules/jsonpointer { };