python3Packages.schema: switch to pytestCheckHook
This commit is contained in:
parent
b014866de5
commit
d76a2e5929
1 changed files with 23 additions and 10 deletions
|
@ -1,28 +1,41 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, contextlib2
|
||||
, fetchPypi
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
pname = "schema";
|
||||
version = "0.7.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f06717112c61895cabc4707752b88716e8420a8819d71404501e114f91043197";
|
||||
hash = "sha256-8GcXESxhiVyrxHB3UriHFuhCCogZ1xQEUB4RT5EEMZc=";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace requirements.txt --replace '==' '>='
|
||||
'';
|
||||
propagatedBuildInputs = [
|
||||
contextlib2
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ contextlib2 ];
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkInputs = [ pytest mock ];
|
||||
checkPhase = "pytest ./test_schema.py";
|
||||
pythonImportsCheck = [
|
||||
"schema"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for validating Python data structures";
|
||||
homepage = "https://github.com/keleshev/schema";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.tobim ];
|
||||
maintainers = with maintainers; [ tobim ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue