1{ lib, buildPythonPackage, fetchPypi, isPy27 2, attrs 3, functools32 4, importlib-metadata 5, mock 6, nose 7, pyperf 8, pyrsistent 9, setuptools-scm 10, twisted 11, vcversioner 12}: 13 14buildPythonPackage rec { 15 pname = "jsonschema"; 16 version = "3.2.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a"; 21 }; 22 23 nativeBuildInputs = [ setuptools-scm ]; 24 propagatedBuildInputs = [ attrs importlib-metadata functools32 pyrsistent ]; 25 checkInputs = [ nose mock pyperf twisted vcversioner ]; 26 27 # zope namespace collides on py27 28 doCheck = !isPy27; 29 checkPhase = '' 30 nosetests 31 ''; 32 33 meta = with lib; { 34 homepage = "https://github.com/Julian/jsonschema"; 35 description = "An implementation of JSON Schema validation for Python"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ domenkozar ]; 38 }; 39}