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";
|
2020-05-09 11:01:59 +01:00
|
|
|
version = "0.7.2";
|
2017-09-16 22:13:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:59 +01:00
|
|
|
sha256 = "b536f2375b49fdf56f36279addae98bd86a8afbd58b3c32ce363c464bed5fc1c";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/keleshev/schema";
|
2017-09-16 22:13:29 +01:00
|
|
|
license = licenses.mit;
|
2019-11-03 10:00:38 +00:00
|
|
|
maintainers = [ maintainers.tobim ];
|
2017-09-16 22:13:29 +01:00
|
|
|
};
|
|
|
|
}
|