1{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
2
3buildPythonPackage rec {
4
5 pname = "schema";
6 version = "0.7.3";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "4cf529318cfd1e844ecbe02f41f7e5aa027463e7403666a52746f31f04f47a5e";
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 stdenv.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}