python3Packages.pyfma: fix tests
This commit is contained in:
parent
9e86aa7157
commit
3a35a9315c
1 changed files with 8 additions and 9 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue