From 6a79b58e8db5f9226a2c3d9cfcf2fb4867855679 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 3 Feb 2025 22:11:35 +0100 Subject: [PATCH] python312Packages.eliot: unbreak, use `addBinToPathHook` --- pkgs/development/python-modules/eliot/default.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/eliot/default.nix b/pkgs/development/python-modules/eliot/default.nix index acd7e0e368cf..2d5467cea9f8 100644 --- a/pkgs/development/python-modules/eliot/default.nix +++ b/pkgs/development/python-modules/eliot/default.nix @@ -15,6 +15,7 @@ zope-interface, daemontools, + addBinToPathHook, dask, distributed, hypothesis, @@ -38,14 +39,6 @@ buildPythonPackage rec { hash = "sha256-KqAXOMrRawzjpt5do2KdqpMMgpBtxeZ+X+th0WwBl+U="; }; - patches = [ - (fetchpatch2 { - name = "numpy2-compat.patch"; - url = "https://github.com/itamarst/eliot/commit/39eccdad44f91971ecf1211fb01366b4d9801817.patch"; - hash = "sha256-al6olmvFZ8pDblljWmWqs5QrtcuHKcea255XgG+1+1o="; - }) - ]; - build-system = [ setuptools ]; dependencies = [ @@ -56,6 +49,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + addBinToPathHook dask distributed hypothesis @@ -69,11 +63,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "eliot" ]; - # Tests run eliot-prettyprint in out/bin. - preCheck = '' - export PATH=$out/bin:$PATH - ''; - disabledTests = [ # Fails since dask's bump to 2024.12.2 # Reported upstream: https://github.com/itamarst/eliot/issues/507