nixpkgs-suyu/pkgs/development/python-modules/cerberus/default.nix

24 lines
558 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pytestrunner, pytest }:
buildPythonPackage rec {
pname = "Cerberus";
version = "1.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "12cm547hpypqd7bwcl4wr4w6varibc1dagzicg5qbp86yaa6cbih";
};
checkInputs = [ pytestrunner pytest ];
2019-10-18 00:06:58 +02:00
checkPhase = ''
pytest -k 'not nested_oneofs'
'';
meta = with lib; {
homepage = "http://python-cerberus.org/";
description = "Lightweight, extensible schema and data validation tool for Python dictionaries";
license = licenses.mit;
};
}