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