2019-05-20 14:54:34 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pybind11
|
|
|
|
, numpy
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfma";
|
2019-10-16 09:43:12 +00:00
|
|
|
version = "0.1.1";
|
2019-05-20 14:54:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 09:43:12 +00:00
|
|
|
sha256 = "2c9ea44c5e30ca8318ca794ff1e3941d3dc7958901b1a9c430d38734bf7b6f8d";
|
2019-05-20 14:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pybind11
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
numpy
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fused multiply-add for Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/nschloe/pyfma";
|
2019-05-20 14:54:34 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc];
|
|
|
|
};
|
|
|
|
}
|