python.pkgs.jsonschema: 2.5.3 -> 2.6.0
This commit is contained in:
parent
32a158b43a
commit
4e1b5e15fb
30
pkgs/development/python-modules/jsonschema/default.nix
Normal file
30
pkgs/development/python-modules/jsonschema/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -9804,33 +9804,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
jsonschema = buildPythonPackage (rec {
|
||||
version = "2.5.1";
|
||||
name = "jsonschema-${version}";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/j/jsonschema/jsonschema-${version}.tar.gz";
|
||||
sha256 = "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ nose mock vcversioner ];
|
||||
propagatedBuildInputs = with self; [ functools32 ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py --replace "python" "${python}/bin/${python.executable}"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/Julian/jsonschema;
|
||||
description = "An implementation of JSON Schema validation for Python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
});
|
||||
jsonschema = callPackage ../development/python-modules/jsonschema { };
|
||||
|
||||
vcversioner = buildPythonPackage rec {
|
||||
name = "vcversioner-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user