python3Packages.pyfma: fix tests

This commit is contained in:
Robert Schütz 2021-02-28 10:09:45 +01:00 committed by Frederik Rietdijk
parent 9e86aa7157
commit 3a35a9315c

View file

@ -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";