python.pkgs.jaraco_logging: add meta and run tests
This commit is contained in:
		
							parent
							
								
									761042b10e
								
							
						
					
					
						commit
						6be3079b47
					
				@ -1,14 +1,26 @@
 | 
			
		||||
{ buildPythonPackage, fetchPypi, setuptools_scm
 | 
			
		||||
, tempora, six }:
 | 
			
		||||
{ lib, buildPythonPackage, fetchPypi, setuptools_scm
 | 
			
		||||
, tempora, six, pytest, pytest-flake8 }:
 | 
			
		||||
 | 
			
		||||
buildPythonPackage rec {
 | 
			
		||||
  pname = "jaraco.logging";
 | 
			
		||||
  version = "2.0";
 | 
			
		||||
 | 
			
		||||
  src = fetchPypi {
 | 
			
		||||
    inherit pname version;
 | 
			
		||||
    sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg";
 | 
			
		||||
  };
 | 
			
		||||
  doCheck = false;
 | 
			
		||||
 | 
			
		||||
  buildInputs = [ setuptools_scm ];
 | 
			
		||||
  propagatedBuildInputs = [ tempora six ];
 | 
			
		||||
  checkInputs = [ pytest pytest-flake8 ];
 | 
			
		||||
 | 
			
		||||
  checkPhase = ''
 | 
			
		||||
    PYTHONPATH=".:$PYTHONPATH" pytest
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Support for Python logging facility";
 | 
			
		||||
    homepage = https://github.com/jaraco/jaraco.logging;
 | 
			
		||||
    license = licenses.mit;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user