python: jsonschema: 2.6.0 -> 3.1.1
This commit is contained in:
parent
4a14c73e02
commit
7f3cdd201e
|
@ -1,28 +1,36 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, python
|
{ lib, buildPythonPackage, fetchPypi, python, isPy27
|
||||||
, nose, mock, vcversioner, functools32 }:
|
, attrs
|
||||||
|
, functools32
|
||||||
|
, importlib-metadata
|
||||||
|
, mock
|
||||||
|
, nose
|
||||||
|
, pyperf
|
||||||
|
, pyrsistent
|
||||||
|
, setuptools_scm
|
||||||
|
, twisted
|
||||||
|
, vcversioner
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jsonschema";
|
pname = "jsonschema";
|
||||||
version = "2.6.0";
|
version = "3.1.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg";
|
sha256 = "2fa0684276b6333ff3c0b1b27081f4b2305f0a36cf702a23db50edb141893c3f";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ nose mock vcversioner ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
propagatedBuildInputs = [ functools32 ];
|
propagatedBuildInputs = [ attrs importlib-metadata functools32 pyrsistent ];
|
||||||
|
checkInputs = [ nose mock pyperf twisted vcversioner ];
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \
|
|
||||||
--replace "python" "${python.pythonForBuild.interpreter}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
# zope namespace collides on py27
|
||||||
|
doCheck = !isPy27;
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
nosetests
|
nosetests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
homepage = https://github.com/Julian/jsonschema;
|
homepage = https://github.com/Julian/jsonschema;
|
||||||
description = "An implementation of JSON Schema validation for Python";
|
description = "An implementation of JSON Schema validation for Python";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in a new issue