3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/warlock/default.nix
2022-02-09 21:24:55 -08:00

52 lines
935 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, jsonpatch
, jsonschema
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "warlock";
version = "1.3.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bcwaldon";
repo = pname;
rev = version;
hash = "sha256-59V4KOwjs/vhA3F3E0j3p5L4JnKPgcExN+mgSWs0Cn0=";
};
propagatedBuildInputs = [
jsonpatch
jsonschema
six
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "jsonschema>=0.7,<4" "jsonschema"
sed -i "/--cov/d" pytest.ini
'';
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 = with maintainers; [ ];
};
}