python.pkgs.jaraco_logging: add meta and run tests

This commit is contained in:
Robert Schütz 2019-01-18 12:28:26 +01:00
parent 761042b10e
commit 6be3079b47

View file

@ -1,14 +1,26 @@
{ buildPythonPackage, fetchPypi, setuptools_scm { lib, buildPythonPackage, fetchPypi, setuptools_scm
, tempora, six }: , tempora, six, pytest, pytest-flake8 }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "jaraco.logging"; pname = "jaraco.logging";
version = "2.0"; version = "2.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg"; sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg";
}; };
doCheck = false;
buildInputs = [ setuptools_scm ]; buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ tempora six ]; 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;
};
} }