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