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:
Tobias Mayer 2019-11-03 10:51:58 +01:00 committed by Jon
parent 19fb94212b
commit aa1ad7b866

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
buildPythonPackage rec {
@ -10,7 +10,14 @@ buildPythonPackage rec {
sha256 = "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959";
};
checkInputs = [ pytest ];
preConfigure = ''
substituteInPlace requirements.txt --replace '==' '>='
'';
propagatedBuildInputs = [ contextlib2 ];
checkInputs = [ pytest mock ];
checkPhase = "pytest ./test_schema.py";
meta = with stdenv.lib; {
description = "Library for validating Python data structures";