1{ stdenv, buildPythonPackage, fetchPypi, python
2, nose, mock, vcversioner, functools32 }:
3
4buildPythonPackage rec {
5 name = "${pname}-${version}";
6 pname = "jsonschema";
7 version = "2.6.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg";
12 };
13
14 buildInputs = [ nose mock vcversioner ];
15 propagatedBuildInputs = [ functools32 ];
16
17 patchPhase = ''
18 substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \
19 --replace "python" "${python}/bin/${python.executable}"
20 '';
21
22 checkPhase = "nosetests";
23
24 meta = with stdenv.lib; {
25 homepage = https://github.com/Julian/jsonschema;
26 description = "An implementation of JSON Schema validation for Python";
27 license = licenses.mit;
28 maintainers = with maintainers; [ domenkozar ];
29 };
30}