2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-08-20 17:08:02 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, aiocontextvars
|
|
|
|
, boltons
|
|
|
|
, hypothesis
|
|
|
|
, pyrsistent
|
2023-02-22 10:55:15 +00:00
|
|
|
, pytestCheckHook
|
2020-08-20 17:08:02 +00:00
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, testtools
|
2024-01-13 08:15:51 +00:00
|
|
|
, zope-interface
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eliot";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "1.14.0";
|
2023-02-22 10:55:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-wvCZo+jV7PwidFdm58xmSkjbZLa4nZht/ycEkdhoMUk=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiocontextvars
|
|
|
|
boltons
|
|
|
|
pyrsistent
|
|
|
|
setuptools
|
|
|
|
six
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-interface
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
testtools
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"eliot"
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# Tests run eliot-prettyprint in out/bin.
|
2023-02-22 10:55:15 +00:00
|
|
|
preCheck = ''
|
2020-08-20 17:08:02 +00:00
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_parse_stream"
|
|
|
|
# AttributeError: module 'inspect' has no attribute 'getargspec'
|
|
|
|
"test_default"
|
|
|
|
];
|
|
|
|
|
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;
|
2023-02-22 10:55:15 +00:00
|
|
|
maintainers = with maintainers; [ dpausp ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|