biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / jsonpath-ng / default.nix
blob5e000c6c413170c1c2ef0e4717d01f9abdd401fc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   ply,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "jsonpath-ng";
13   version = "1.6.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "h2non";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-0ErTGxGlMn/k2KMwRV26WJpx85yJUfn6Hgp5pU4RZA4=";
23   };
25   propagatedBuildInputs = [
26     ply
27     setuptools
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   disabledTestPaths = [
33     # Exclude tests that require oslotest
34     "tests/test_jsonpath_rw_ext.py"
35   ];
37   pythonImportsCheck = [ "jsonpath_ng" ];
39   meta = with lib; {
40     description = "JSONPath implementation";
41     mainProgram = "jsonpath_ng";
42     homepage = "https://github.com/h2non/jsonpath-ng";
43     changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md";
44     license = with licenses; [ asl20 ];
45     maintainers = with maintainers; [ fab ];
46   };