summary refs log blame commit diff
path: root/pkgs/development/python-modules/cerberus/default.nix
blob: cdf6519d325f1c8ac4a99711084de194e40a1fc6 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                             


                        
                    


                          
                                                                    

    

                                        



                                 
                    
                                             



                                                                                                    
{ lib, 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;
  };
}