git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.jsonpath-ng: init at 1.5.2
commitaa55da38102634ef3874f320ed26e585d5a9dd12 authorFabian Affolter <mail@fabian-affolter.ch> dateWed 24 Feb 2021, 08:37 (6 years ago) parentb1efbc6
2 files changed+44
pkgs/development/python-modules/jsonpath-ng/default.nix+42 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/jsonpath-ng/default.nixnew file+42
@@ -0,0 +1,42 @@
1+{ lib
2+, buildPythonPackage
3+, decorator
4+, fetchFromGitHub
5+, ply
6+, pytestCheckHook
7+, six
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "jsonpath-ng";
12+ version = "1.5.2";
13+
14+ src = fetchFromGitHub {
15+ owner = "h2non";
16+ repo = pname;
17+ rev = "v${version}";
18+ sha256 = "1cxjwhx0nj85a3awnl7j6afnk07awzv45qfwxl5jqbbc9cxh5bd6";
19+ };
20+
21+ propagatedBuildInputs = [
22+ decorator
23+ ply
24+ six
25+ ];
26+
27+ checkInputs = [ pytestCheckHook ];
28+
29+ disabledTestFiles = [
30+ # Exclude tests that require oslotest
31+ "tests/test_jsonpath_rw_ext.py"
32+ ];
33+
34+ pythonImportsCheck = [ "jsonpath_ng" ];
35+
36+ meta = with lib; {
37+ description = "JSONPath implementation for Python";
38+ homepage = "https://github.com/h2non/jsonpath-ng";
39+ license = with licenses; [ asl20 ];
40+ maintainers = with maintainers; [ fab ];
41+ };
42+}
pkgs/top-level/python-packages.nix+2
@@ -3393,6 +3393,8 @@ in {
33933393
33943394 jsonpath_rw = callPackage ../development/python-modules/jsonpath_rw { };
33953395
3396+ jsonpath-ng = callPackage ../development/python-modules/jsonpath-ng { };
3397+
33963398 jsonpickle = callPackage ../development/python-modules/jsonpickle { };
33973399
33983400 jsonpointer = callPackage ../development/python-modules/jsonpointer { };