about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2023-08-25 23:28:12 +0200
committerGitHub <noreply@github.com>2023-08-25 23:28:12 +0200
commit09e782df002bf16a588d7f41107238a4d16fac19 (patch)
tree8c2645b433deb9fadc59ce1410b54fe3215e8ce4
parent40d7dfa5138ed4c613b4765ac4f2b8e0066d28dd (diff)
parentdb9cffaafd7c68001158521f08f1beaa7b3ebd4e (diff)
Merge pull request #251430 from fabaff/jsonpath-bump
python311Packages.jsonpath: 0.82 -> 0.82.2
-rw-r--r--pkgs/development/python-modules/jsonpath/default.nix23
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/jsonpath/default.nix b/pkgs/development/python-modules/jsonpath/default.nix
index 383df6e2652e9..00205eb1907af 100644
--- a/pkgs/development/python-modules/jsonpath/default.nix
+++ b/pkgs/development/python-modules/jsonpath/default.nix
@@ -1,21 +1,38 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, pytestCheckHook
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "jsonpath";
-  version = "0.82";
+  version = "0.82.2";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "46d3fd2016cd5b842283d547877a02c418a0fe9aa7a6b0ae344115a2c990fef4";
+    hash = "sha256-2H7yvLze1o7pa8NMGAm2lFfs7JsMTdRxZYoSvTkQAtE=";
   };
 
+  nativeCheckInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "jsonpath"
+  ];
+
+  pytestFlagsArray = [
+    "test/test*.py"
+  ];
+
   meta = with lib; {
     description = "An XPath for JSON";
     homepage = "https://github.com/json-path/JsonPath";
     license = licenses.mit;
-    maintainers = [ maintainers.mic92 ];
+    maintainers = with maintainers; [ mic92 ];
   };
 }