Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 37 lines 866 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, attrs 3, pyrsistent 4, six 5, functools32 6, lockfile 7, setuptools_scm 8}: 9 10buildPythonPackage rec { 11 pname = "jsonschema"; 12 version = "3.0.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0c0a81564f181de3212efa2d17de1910f8732fa1b71c42266d983cd74304e20d"; 17 }; 18 19 nativeBuildInputs = [ setuptools_scm ]; 20 propagatedBuildInputs = [ 21 attrs 22 pyrsistent 23 six 24 lockfile 25 ] ++ lib.optional isPy27 functools32; 26 27 # tests for latest version rely on custom version of betterpaths that is 28 # difficult to deal with and isn't used on master 29 doCheck = false; 30 31 meta = with lib; { 32 homepage = https://github.com/Julian/jsonschema; 33 description = "An implementation of JSON Schema validation for Python"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ jakewaksbaum ]; 36 }; 37}