42 lines
647 B
Nix
Raw Normal View History

2019-05-20 10:54:34 -04:00
{ lib
, buildPythonPackage
, fetchPypi
, pybind11
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "pyfma";
2021-02-20 10:09:13 +01:00
version = "0.1.2";
2019-05-20 10:54:34 -04:00
src = fetchPypi {
inherit pname version;
2021-02-20 10:09:13 +01:00
sha256 = "3a9e2503fd01baa4978af5f491b79b7646d7872df9ecc7ab63ba10c250c50d8a";
2019-05-20 10:54:34 -04:00
};
buildInputs = [
pybind11
];
checkInputs = [
numpy
pytest
];
preBuild = ''
export HOME=$(mktemp -d)
'';
checkPhase = ''
pytest test
'';
meta = with lib; {
description = "Fused multiply-add for Python";
homepage = "https://github.com/nschloe/pyfma";
2019-05-20 10:54:34 -04:00
license = licenses.mit;
maintainers = [ maintainers.costrouc];
};
}