1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "jsonpath";
11 version = "0.82.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-2H7yvLze1o7pa8NMGAm2lFfs7JsMTdRxZYoSvTkQAtE=";
19 };
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "jsonpath" ];
24
25 enabledTestPaths = [ "test/test*.py" ];
26
27 meta = with lib; {
28 description = "XPath for JSON";
29 homepage = "https://github.com/json-path/JsonPath";
30 license = licenses.mit;
31 maintainers = with maintainers; [ mic92 ];
32 };
33}