2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-08-20 17:08:02 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, aiocontextvars
|
|
|
|
, boltons
|
|
|
|
, hypothesis
|
|
|
|
, pyrsistent
|
|
|
|
, pytest
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, testtools
|
|
|
|
, zope_interface
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eliot";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "1.14.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "c2f099a3e8d5ecfc22745766e7cc664a48db64b6b89d986dff270491d8683149";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
testtools
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiocontextvars
|
|
|
|
boltons
|
|
|
|
pyrsistent
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
zope_interface
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "eliot" ];
|
|
|
|
|
|
|
|
# Tests run eliot-prettyprint in out/bin.
|
|
|
|
# test_parse_stream is broken, skip it.
|
|
|
|
checkPhase = ''
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
pytest -k 'not test_parse_stream'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://eliot.readthedocs.io";
|
|
|
|
description = "Logging library that tells you why it happened";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.dpausp ];
|
|
|
|
};
|
|
|
|
}
|