git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #114188 from fabaff/jsonpath-ng

python3Packages.jsonpath-ng: init at 1.5.2

commit2f5343a77eef3888e20920eb5ce1adf72a4fba24 authorMartin Weinelt <mweinelt@users.noreply.github.com> dateWed 24 Feb 2021, 11:27 (6 years ago) parent2d28c95aa55da3
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
@@ -3395,6 +3395,8 @@ in {
33953395
33963396 jsonpath_rw = callPackage ../development/python-modules/jsonpath_rw { };
33973397
3398+ jsonpath-ng = callPackage ../development/python-modules/jsonpath-ng { };
3399+
33983400 jsonpickle = callPackage ../development/python-modules/jsonpickle { };
33993401
34003402 jsonpointer = callPackage ../development/python-modules/jsonpointer { };