pythonPackages.schema: Fix
This depends on contextlib2 and mock. The preConfigure hook can probably be removed with the next version bump, see https://github.com/keleshev/schema/pull/222.
This commit is contained in:
parent
19fb94212b
commit
aa1ad7b866
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
|
{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
|
||||||
@ -10,7 +10,14 @@ buildPythonPackage rec {
|
|||||||
sha256 = "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959";
|
sha256 = "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
preConfigure = ''
|
||||||
|
substituteInPlace requirements.txt --replace '==' '>='
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ contextlib2 ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest mock ];
|
||||||
|
checkPhase = "pytest ./test_schema.py";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Library for validating Python data structures";
|
description = "Library for validating Python data structures";
|
||||||
|
Loading…
Reference in New Issue
Block a user