nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 51 lines 1.1 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchPypi, 5 addBinToPathHook, 6}: 7 8python3Packages.buildPythonApplication rec { 9 pname = "eliot-tree"; 10 version = "21.0.0"; 11 pyproject = true; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-hTl+r+QJPPQ7ss73lty3Wm7DLy2SKGmmgIuJx38ilO8="; 16 }; 17 18 # Patch Python 3.12 incompatibilities in versioneer.py. 19 postPatch = '' 20 substituteInPlace versioneer.py \ 21 --replace-fail SafeConfigParser ConfigParser \ 22 --replace-fail readfp read_file 23 ''; 24 25 build-system = with python3Packages; [ setuptools ]; 26 27 dependencies = with python3Packages; [ 28 colored 29 eliot 30 iso8601 31 jmespath 32 toolz 33 ]; 34 35 nativeCheckInputs = with python3Packages; [ 36 addBinToPathHook 37 pytestCheckHook 38 testtools 39 ]; 40 41 pythonImportsCheck = [ "eliottree" ]; 42 43 meta = { 44 homepage = "https://github.com/jonathanj/eliottree"; 45 changelog = "https://github.com/jonathanj/eliottree/blob/${version}/NEWS.rst"; 46 description = "Render Eliot logs as an ASCII tree"; 47 mainProgram = "eliot-tree"; 48 license = lib.licenses.mit; 49 maintainers = [ lib.maintainers.dpausp ]; 50 }; 51}