2025-06-02 05:56:45 +02:00

53 lines
967 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
poetry-core,
jsonpatch,
jsonschema,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "warlock";
version = "2.0.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bcwaldon";
repo = "warlock";
tag = version;
hash = "sha256-HOCLzFYmOL/tCXT+NO/tCZuVXVowNEPP3g33ZYg4+6Q=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
jsonpatch
jsonschema
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
disabledTests = [
# https://github.com/bcwaldon/warlock/issues/64
"test_recursive_models"
];
pythonImportsCheck = [ "warlock" ];
meta = with lib; {
description = "Python object model built on JSON schema and JSON patch";
homepage = "https://github.com/bcwaldon/warlock";
license = licenses.asl20;
maintainers = [ ];
};
}