83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
52 lines
1,014 B
Nix
52 lines
1,014 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, poetry-core
|
|
, jsonschema
|
|
, pathable
|
|
, pyyaml
|
|
, typing-extensions
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonschema-spec";
|
|
version = "0.1.3";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "p1c2u";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vDuIMzl9w7/e6r3AYleGVV5RRjrXDSvY6IBhtLuAFIs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/--cov/d" pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
jsonschema
|
|
pathable
|
|
pyyaml
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|