1{ lib, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
2
3buildPythonPackage rec {
4
5 pname = "schema";
6 version = "0.7.4";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "fbb6a52eb2d9facf292f233adcc6008cffd94343c63ccac9a1cb1f3e6de1db17";
11 };
12
13 preConfigure = ''
14 substituteInPlace requirements.txt --replace '==' '>='
15 '';
16
17 propagatedBuildInputs = [ contextlib2 ];
18
19 checkInputs = [ pytest mock ];
20 checkPhase = "pytest ./test_schema.py";
21
22 meta = with lib; {
23 description = "Library for validating Python data structures";
24 homepage = "https://github.com/keleshev/schema";
25 license = licenses.mit;
26 maintainers = [ maintainers.tobim ];
27 };
28}