2021-02-24 18:30:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, decorator
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ply
|
|
|
|
, pytestCheckHook
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonpath-ng";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.5.3";
|
2021-02-24 18:30:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "h2non";
|
|
|
|
repo = pname;
|
2022-10-21 18:38:19 +00:00
|
|
|
# missing tag https://github.com/h2non/jsonpath-ng/issues/114
|
|
|
|
rev = "cce4a3d4063ac8af928795acc53beb27a2bfd101";
|
|
|
|
sha256 = "sha256-+9iQHQs5TQhZFeIqMlsa3FFPfZEktAWy1lSdJU7kZrc=";
|
2021-02-24 18:30:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
decorator
|
|
|
|
ply
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
disabledTestPaths = [
|
2021-02-24 18:30:23 +00:00
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|