python311Packages.jsonschema-path: init at 0.3.2

This commit is contained in:
Robert Schütz
2023-12-20 20:16:42 +01:00
committed by Martin Weinelt
parent 63ab0ccf20
commit 9e69d3ef1d
2 changed files with 57 additions and 0 deletions
@@ -0,0 +1,55 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, 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
];
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 ];
};
}
+2
View File
@@ -5873,6 +5873,8 @@ self: super: with self; {
jsonschema = callPackage ../development/python-modules/jsonschema { };
jsonschema-path = callPackage ../development/python-modules/jsonschema-path { };
jsonschema-spec = callPackage ../development/python-modules/jsonschema-spec { };
jsonschema-specifications = callPackage ../development/python-modules/jsonschema-specifications { };