ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, aiocontextvars
|
|
, boltons
|
|
, hypothesis
|
|
, pyrsistent
|
|
, pytestCheckHook
|
|
, setuptools
|
|
, six
|
|
, testtools
|
|
, zope-interface
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eliot";
|
|
version = "1.14.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wvCZo+jV7PwidFdm58xmSkjbZLa4nZht/ycEkdhoMUk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiocontextvars
|
|
boltons
|
|
pyrsistent
|
|
setuptools
|
|
six
|
|
zope-interface
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
testtools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"eliot"
|
|
];
|
|
|
|
# Tests run eliot-prettyprint in out/bin.
|
|
preCheck = ''
|
|
export PATH=$out/bin:$PATH
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_parse_stream"
|
|
# AttributeError: module 'inspect' has no attribute 'getargspec'
|
|
"test_default"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://eliot.readthedocs.io";
|
|
description = "Logging library that tells you why it happened";
|
|
mainProgram = "eliot-prettyprint";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dpausp ];
|
|
};
|
|
}
|