Skip to content

Commit

Permalink
python3Packages.jsonschema-spec: init at 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Sep 17, 2022
1 parent 77721e3 commit f8bf786
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/development/python-modules/jsonschema-spec/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4818,6 +4818,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 { };
Expand Down

0 comments on commit f8bf786

Please sign in to comment.