depot/third_party/nixpkgs/pkgs/development/python-modules/jsonschema-path/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

60 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
pythonRelaxDepsHook,
pathable,
pyyaml,
referencing,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "jsonschema-path";
version = "0.3.2";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "p1c2u";
repo = "jsonschema-path";
rev = version;
hash = "sha256-HC0yfACKFIQEQoIa8/FUKyV8YS8TQ0BY7i3n9xCdKz8=";
};
postPatch = ''
sed -i '/--cov/d' pyproject.toml
'';
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [ "referencing" ];
propagatedBuildInputs = [
pathable
pyyaml
referencing
];
pythonImportsCheck = [ "jsonschema_path" ];
nativeCheckInputs = [
pytestCheckHook
responses
];
meta = {
description = "JSONSchema Spec with object-oriented paths";
homepage = "https://github.com/p1c2u/jsonschema-path";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}