2018-04-06 16:46:49 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytestrunner, pytest }:
|
2018-03-31 16:13:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Cerberus";
|
2019-11-02 20:27:29 +00:00
|
|
|
version = "1.3.2";
|
2018-03-31 16:13:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-02 20:27:29 +00:00
|
|
|
sha256 = "12cm547hpypqd7bwcl4wr4w6varibc1dagzicg5qbp86yaa6cbih";
|
2018-03-31 16:13:52 +00:00
|
|
|
};
|
|
|
|
|
2018-04-06 16:46:49 +00:00
|
|
|
checkInputs = [ pytestrunner pytest ];
|
|
|
|
|
2019-10-17 22:06:58 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest -k 'not nested_oneofs'
|
|
|
|
'';
|
|
|
|
|
2018-03-31 16:13:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://python-cerberus.org/;
|
|
|
|
description = "Lightweight, extensible schema and data validation tool for Python dictionaries";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|