2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, contextlib2, pytest, mock }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
|
|
|
pname = "schema";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.7.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "f06717112c61895cabc4707752b88716e8420a8819d71404501e114f91043197";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace requirements.txt --replace '==' '>='
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ contextlib2 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
checkPhase = "pytest ./test_schema.py";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for validating Python data structures";
|
|
|
|
homepage = "https://github.com/keleshev/schema";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.tobim ];
|
|
|
|
};
|
|
|
|
}
|