2019-11-03 09:51:58 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
|
2017-09-16 22:13:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
|
|
|
pname = "schema";
|
2019-10-24 07:47:48 +01:00
|
|
|
version = "0.7.1";
|
2017-09-16 22:13:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:48 +01:00
|
|
|
sha256 = "c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959";
|
2017-09-16 22:13:29 +01:00
|
|
|
};
|
|
|
|
|
2019-11-03 09:51:58 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace requirements.txt --replace '==' '>='
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ contextlib2 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
checkPhase = "pytest ./test_schema.py";
|
2017-09-16 22:13:29 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library for validating Python data structures";
|
|
|
|
homepage = https://github.com/keleshev/schema;
|
|
|
|
license = licenses.mit;
|
2019-11-03 10:00:38 +00:00
|
|
|
maintainers = [ maintainers.tobim ];
|
2017-09-16 22:13:29 +01:00
|
|
|
};
|
|
|
|
}
|