nixpkgs/pkgs/development/python-modules/jsonpath-python/default.nix
2024-12-27 16:37:35 +01:00

27 lines
707 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonpath-python";
version = "1.0.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-3Vvkpy2KKZXD9YPPgr880alUTP2r8tIllbZ6/wc0lmY=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jsonpath" ];
pytestFlagsArray = [ "test/test*.py" ];
meta = with lib; {
homepage = "https://github.com/sean2077/jsonpath-python";
description = "A more powerful JSONPath implementations in modern python.";
maintainers = with maintainers; [ dadada ];
license = with licenses; [ mit ];
};
}