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
1 changed files with 8 additions and 9 deletions

View File

@ -1,15 +1,19 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, isPy27
, fetchPypi , fetchPypi
, pybind11 , pybind11
, exdown
, numpy , numpy
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyfma"; pname = "pyfma";
version = "0.1.2"; version = "0.1.2";
disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "3a9e2503fd01baa4978af5f491b79b7646d7872df9ecc7ab63ba10c250c50d8a"; sha256 = "3a9e2503fd01baa4978af5f491b79b7646d7872df9ecc7ab63ba10c250c50d8a";
@ -20,17 +24,12 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
exdown
numpy numpy
pytest pytestCheckHook
]; ];
preBuild = '' pythonImportsCheck = [ "pyfma" ];
export HOME=$(mktemp -d)
'';
checkPhase = ''
pytest test
'';
meta = with lib; { meta = with lib; {
description = "Fused multiply-add for Python"; description = "Fused multiply-add for Python";