Merge pull request #28884 from FRidh/python-fixes

Python: several fixes
This commit is contained in:
Frederik Rietdijk
2017-09-05 11:16:41 +02:00
committed by Frederik Rietdijk
parent 036bafe0b9
commit 67651d80bc
71 changed files with 1365 additions and 761 deletions

View File

@@ -0,0 +1,30 @@
{ stdenv, buildPythonPackage, fetchPypi, python
, nose, mock, vcversioner, functools32 }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "jsonschema";
version = "2.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg";
};
buildInputs = [ nose mock vcversioner ];
propagatedBuildInputs = [ functools32 ];
patchPhase = ''
substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \
--replace "python" "${python}/bin/${python.executable}"
'';
checkPhase = "nosetests";
meta = with stdenv.lib; {
homepage = https://github.com/Julian/jsonschema;
description = "An implementation of JSON Schema validation for Python";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar ];
};
}