2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-07-27 06:49:29 +00:00
|
|
|
stdenv,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonAtLeast,
|
|
|
|
|
|
|
|
setuptools,
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
boltons,
|
2024-07-27 06:49:29 +00:00
|
|
|
orjson,
|
2024-06-05 15:53:02 +00:00
|
|
|
pyrsistent,
|
2024-07-27 06:49:29 +00:00
|
|
|
zope-interface,
|
|
|
|
|
|
|
|
daemontools,
|
|
|
|
dask,
|
|
|
|
distributed,
|
|
|
|
hypothesis,
|
|
|
|
pandas,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
testtools,
|
2024-07-27 06:49:29 +00:00
|
|
|
twisted,
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eliot";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.15.0";
|
|
|
|
pyproject = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.8" || pythonAtLeast "3.13";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itamarst";
|
|
|
|
repo = "eliot";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Ur7q7PZ5HH4ttD3b0HyBTe1B7eQ2nEWcTBR/Hjeg9yw=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2020-08-20 17:08:02 +00:00
|
|
|
boltons
|
2024-07-27 06:49:29 +00:00
|
|
|
orjson
|
2020-08-20 17:08:02 +00:00
|
|
|
pyrsistent
|
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 = [
|
2024-07-27 06:49:29 +00:00
|
|
|
dask
|
|
|
|
distributed
|
2023-02-22 10:55:15 +00:00
|
|
|
hypothesis
|
2024-07-27 06:49:29 +00:00
|
|
|
pandas
|
2023-02-22 10:55:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
testtools
|
2024-07-27 06:49:29 +00:00
|
|
|
twisted
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [ daemontools ];
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://eliot.readthedocs.io";
|
|
|
|
description = "Logging library that tells you why it happened";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/itamarst/eliot/blob/${version}/docs/source/news.rst";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "eliot-prettyprint";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ dpausp ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|