about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-09-16 13:31:03 +0200
committerGitHub <noreply@github.com>2023-09-16 13:31:03 +0200
commitfae75190d3bdd7703cbf2f06eabba90ccc80a4a7 (patch)
tree11958154a62a42d4be7577ce41a0b99204fbc464
parente103762649222542f4627b3fbefe13f82583c7a4 (diff)
python310Packages.jsonpath-ng: clean-up
-rw-r--r--pkgs/development/python-modules/jsonpath-ng/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/jsonpath-ng/default.nix b/pkgs/development/python-modules/jsonpath-ng/default.nix
index 16e638bc30b49..21ea81637d00e 100644
--- a/pkgs/development/python-modules/jsonpath-ng/default.nix
+++ b/pkgs/development/python-modules/jsonpath-ng/default.nix
@@ -1,38 +1,41 @@
 { lib
 , buildPythonPackage
-, decorator
 , fetchFromGitHub
 , ply
 , pytestCheckHook
-, six
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "jsonpath-ng";
   version = "1.6.0";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "h2non";
     repo = pname;
-    # missing tag https://github.com/h2non/jsonpath-ng/issues/114
     rev = "refs/tags/v${version}";
     hash = "sha256-q4kIH/2+VKdlSa+IhJ3ymHpc5gmml9lW4aJS477/YSo=";
   };
 
   propagatedBuildInputs = [
-    decorator
     ply
-    six
   ];
 
-  nativeCheckInputs = [ pytestCheckHook ];
+  nativeCheckInputs = [
+    pytestCheckHook
+  ];
 
   disabledTestPaths = [
     # Exclude tests that require oslotest
     "tests/test_jsonpath_rw_ext.py"
   ];
 
-  pythonImportsCheck = [ "jsonpath_ng" ];
+  pythonImportsCheck = [
+    "jsonpath_ng"
+  ];
 
   meta = with lib; {
     description = "JSONPath implementation";