2019-01-18 11:28:26 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools_scm
|
2019-03-10 15:44:31 +00:00
|
|
|
, tempora, six, pytest
|
|
|
|
}:
|
2018-09-03 01:20:50 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jaraco.logging";
|
2019-01-16 22:40:44 +00:00
|
|
|
version = "2.0";
|
2019-01-18 11:28:26 +00:00
|
|
|
|
2018-09-03 01:20:50 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-16 22:40:44 +00:00
|
|
|
sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg";
|
2018-09-03 01:20:50 +01:00
|
|
|
};
|
2019-01-18 11:28:26 +00:00
|
|
|
|
2019-03-10 15:44:31 +00:00
|
|
|
patches = [ ./0001-Don-t-run-flake8-checks-during-the-build.patch ];
|
|
|
|
|
2018-09-03 01:20:50 +01:00
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ tempora six ];
|
2019-03-10 15:44:31 +00:00
|
|
|
checkInputs = [ pytest ];
|
2019-01-18 11:28:26 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH=".:$PYTHONPATH" pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Support for Python logging facility";
|
|
|
|
homepage = https://github.com/jaraco/jaraco.logging;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2018-09-03 01:20:50 +01:00
|
|
|
}
|