python3Packages.jsonschema-spec: init at 0.1.2

This commit is contained in:
Martin Weinelt 2022-09-15 21:52:22 +02:00
parent d4d5601d99
commit cf758ae355
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
, jsonschema
, pathable
, pyyaml
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "jsonschema-spec";
version = "0.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "p1c2u";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-RfkD2fVH9OUTe0XNpHO6brQ4+8zbMpae6AgdeFpYXa8=";
};
postPatch = ''
sed -i "/--cov/d" pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
jsonschema
pathable
pyyaml
typing-extensions
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/p1c2u/jsonschema-spec/releases/tag/${version}";
description = "JSONSchema Spec with object-oriented paths";
homepage = "https://github.com/p1c2u/jsonschema-spec";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -4832,6 +4832,8 @@ in {
jsonschema = callPackage ../development/python-modules/jsonschema { };
jsonschema-spec = callPackage ../development/python-modules/jsonschema-spec { };
jsonstreams = callPackage ../development/python-modules/jsonstreams { };
json-tricks = callPackage ../development/python-modules/json-tricks { };