3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/jsonschema/default.nix
Frederik Rietdijk e18dc13e50 Revert "pythonPackages.jsonschema: 2.6.0 -> 3.0.1"
Too soon. We need to wait till it is better supported.

This reverts commit ba4384d865.
2019-07-21 08:38:23 +02:00

32 lines
813 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, python
, nose, mock, vcversioner, functools32 }:
buildPythonPackage rec {
pname = "jsonschema";
version = "2.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg";
};
checkInputs = [ nose mock vcversioner ];
propagatedBuildInputs = [ functools32 ];
postPatch = ''
substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \
--replace "python" "${python.pythonForBuild.interpreter}"
'';
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 ];
};
}