From 2d6cf36efd4a61345d87d429cc0f1b69c4172a06 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:57:20 -0700 Subject: [PATCH] python3.pkgs.datrie: add build dependencies and improve derivation (#247306) --- pkgs/development/python-modules/datrie/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/datrie/default.nix b/pkgs/development/python-modules/datrie/default.nix index 414474af6ccb..73f4764d742d 100644 --- a/pkgs/development/python-modules/datrie/default.nix +++ b/pkgs/development/python-modules/datrie/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchPypi , setuptools +, wheel , cython , pytestCheckHook , hypothesis @@ -17,17 +18,20 @@ buildPythonPackage rec { hash = "sha256-UlsI9jjVz2EV32zNgY5aASmM0jCy2skcj/LmSZ0Ydl0="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace '"pytest-runner", ' "" + ''; + nativeBuildInputs = [ setuptools + wheel cython ]; nativeCheckInputs = [ - pytestCheckHook - ]; - - checkInputs = [ hypothesis + pytestCheckHook ]; pythonImportsCheck = [ "datrie" ];