mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
24 lines
566 B
Nix
24 lines
566 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytestrunner, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Cerberus";
|
|
version = "1.3.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "12cm547hpypqd7bwcl4wr4w6varibc1dagzicg5qbp86yaa6cbih";
|
|
};
|
|
|
|
checkInputs = [ pytestrunner pytest ];
|
|
|
|
checkPhase = ''
|
|
pytest -k 'not nested_oneofs'
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://python-cerberus.org/;
|
|
description = "Lightweight, extensible schema and data validation tool for Python dictionaries";
|
|
license = licenses.mit;
|
|
};
|
|
}
|