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


                    

                 
        
             



                        
                    
                        
 
                               




                         
                                                                   



                           
               


                 
                   
    
 


                        

                    
                                                    




                                                    
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pyyaml
, ruamel-yaml
}:

buildPythonPackage rec {
  pname = "yamale";
  version = "4.0.3";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "23andMe";
    repo = pname;
    rev = version;
    sha256 = "sha256-EkCKUSPRrj3g2AY17tquBDxf+nWfpdnILu5AS/2SsLo=";
  };

  propagatedBuildInputs = [
    pyyaml
    ruamel-yaml
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "yamale"
  ];

  meta = with lib; {
    description = "A schema and validator for YAML";
    homepage = "https://github.com/23andMe/Yamale";
    license = licenses.mit;
    maintainers = with maintainers; [ rtburns-jpl ];
  };
}