Merge pull request #114188 from fabaff/jsonpath-ng

python3Packages.jsonpath-ng: init at 1.5.2
This commit is contained in:
Martin Weinelt 2021-02-24 11:27:47 +01:00 committed by GitHub
commit 2f5343a77e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, decorator
, fetchFromGitHub
, ply
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "jsonpath-ng";
version = "1.5.2";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "v${version}";
sha256 = "1cxjwhx0nj85a3awnl7j6afnk07awzv45qfwxl5jqbbc9cxh5bd6";
};
propagatedBuildInputs = [
decorator
ply
six
];
checkInputs = [ pytestCheckHook ];
disabledTestFiles = [
# Exclude tests that require oslotest
"tests/test_jsonpath_rw_ext.py"
];
pythonImportsCheck = [ "jsonpath_ng" ];
meta = with lib; {
description = "JSONPath implementation for Python";
homepage = "https://github.com/h2non/jsonpath-ng";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -3395,6 +3395,8 @@ in {
jsonpath_rw = callPackage ../development/python-modules/jsonpath_rw { };
jsonpath-ng = callPackage ../development/python-modules/jsonpath-ng { };
jsonpickle = callPackage ../development/python-modules/jsonpickle { };
jsonpointer = callPackage ../development/python-modules/jsonpointer { };