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