depot/third_party/nixpkgs/pkgs/development/python-modules/jsonpath-ng/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

49 lines
963 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, ply
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "jsonpath-ng";
version = "1.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-q4kIH/2+VKdlSa+IhJ3ymHpc5gmml9lW4aJS477/YSo=";
};
propagatedBuildInputs = [
ply
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = [
# Exclude tests that require oslotest
"tests/test_jsonpath_rw_ext.py"
];
pythonImportsCheck = [
"jsonpath_ng"
];
meta = with lib; {
description = "JSONPath implementation";
homepage = "https://github.com/h2non/jsonpath-ng";
changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}