1{ stdenv, buildPythonPackage, fetchPypi, pytestrunner, pytest }:
2
3buildPythonPackage rec {
4 pname = "Cerberus";
5 version = "1.3.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "12cm547hpypqd7bwcl4wr4w6varibc1dagzicg5qbp86yaa6cbih";
10 };
11
12 checkInputs = [ pytestrunner pytest ];
13
14 checkPhase = ''
15 pytest -k 'not nested_oneofs'
16 '';
17
18 meta = with stdenv.lib; {
19 homepage = "http://python-cerberus.org/";
20 description = "Lightweight, extensible schema and data validation tool for Python dictionaries";
21 license = licenses.mit;
22 };
23}