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

                      


                           
                  
 

                          
                                                                    
    
 

                                                                      

                                          
                           









                                                        
 
{ lib, buildPythonPackage, fetchPypi, setuptools_scm
, tempora, six, pytest
}:

buildPythonPackage rec {
  pname = "jaraco.logging";
  version = "2.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg";
  };

  patches = [ ./0001-Don-t-run-flake8-checks-during-the-build.patch ];

  buildInputs = [ setuptools_scm ];
  propagatedBuildInputs = [ tempora six ];
  checkInputs = [ pytest ];

  checkPhase = ''
    PYTHONPATH=".:$PYTHONPATH" pytest
  '';

  meta = with lib; {
    description = "Support for Python logging facility";
    homepage = https://github.com/jaraco/jaraco.logging;
    license = licenses.mit;
  };
}