python3Packages.warlock: enable tests
This commit is contained in:
parent
ba3b21dc06
commit
626dc5f00a
@ -1,27 +1,51 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, six
|
, pythonOlder
|
||||||
, jsonpatch
|
, jsonpatch
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, jsonpointer
|
, six
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "warlock";
|
pname = "warlock";
|
||||||
version = "1.3.3";
|
version = "1.3.3";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "a093c4d04b42b7907f69086e476a766b7639dca50d95edc83aef6aeab9db2090";
|
src = fetchFromGitHub {
|
||||||
|
owner = "bcwaldon";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-59V4KOwjs/vhA3F3E0j3p5L4JnKPgcExN+mgSWs0Cn0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six jsonpatch jsonschema jsonpointer ];
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/bcwaldon/warlock";
|
|
||||||
description = "Python object model built on JSON schema and JSON patch";
|
description = "Python object model built on JSON schema and JSON patch";
|
||||||
|
homepage = "https://github.com/bcwaldon/warlock";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user