From 3a35a9315c1c11d8bd255e5fd9ffa4976c7a108e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 28 Feb 2021 10:09:45 +0100 Subject: [PATCH] python3Packages.pyfma: fix tests --- .../python-modules/pyfma/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pyfma/default.nix b/pkgs/development/python-modules/pyfma/default.nix index eda9dc5796aa..405098113acb 100644 --- a/pkgs/development/python-modules/pyfma/default.nix +++ b/pkgs/development/python-modules/pyfma/default.nix @@ -1,15 +1,19 @@ { lib , buildPythonPackage +, isPy27 , fetchPypi , pybind11 +, exdown , numpy -, pytest +, pytestCheckHook }: buildPythonPackage rec { pname = "pyfma"; version = "0.1.2"; + disabled = isPy27; + src = fetchPypi { inherit pname version; sha256 = "3a9e2503fd01baa4978af5f491b79b7646d7872df9ecc7ab63ba10c250c50d8a"; @@ -20,17 +24,12 @@ buildPythonPackage rec { ]; checkInputs = [ + exdown numpy - pytest + pytestCheckHook ]; - preBuild = '' - export HOME=$(mktemp -d) - ''; - - checkPhase = '' - pytest test - ''; + pythonImportsCheck = [ "pyfma" ]; meta = with lib; { description = "Fused multiply-add for Python";