about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cerberus/default.nix
blob: 3773e6a834ce325b3c2cea191bbc6f7185e2b307 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, buildPythonPackage, fetchPypi, pytestrunner, pytest }:

buildPythonPackage rec {
  pname = "Cerberus";
  version = "1.3.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0be48fc0dc84f83202a5309c0aa17cd5393e70731a1698a50d118b762fbe6875";
  };

  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;
  };
}