depot/third_party/nixpkgs/pkgs/development/python-modules/cerberus/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

23 lines
566 B
Nix

{ lib, 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 lib; {
homepage = "http://python-cerberus.org/";
description = "Lightweight, extensible schema and data validation tool for Python dictionaries";
license = licenses.mit;
};
}