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