Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 37 lines 869 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27, callPackage 2, attrs 3, pyrsistent 4, six 5, functools32 6, lockfile 7, setuptools_scm 8}: 9 10buildPythonPackage rec { 11 pname = "jsonschema"; 12 version = "3.0.0a3"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0pkhsq91rhk6384p0jxjkhc9yml2ya2l0mysyq78sb4981h45n6z"; 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}