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 checkInputs = [ nose mock vcversioner ];
14 propagatedBuildInputs = [ functools32 ];
15
16 postPatch = ''
17 substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \
18 --replace "python" "${python.pythonForBuild.interpreter}"
19 '';
20
21 checkPhase = ''
22 nosetests
23 '';
24
25 meta = with stdenv.lib; {
26 homepage = https://github.com/Julian/jsonschema;
27 description = "An implementation of JSON Schema validation for Python";
28 license = licenses.mit;
29 maintainers = with maintainers; [ domenkozar ];
30 };
31}