pythonPackages.pyfma: init at 0.1.0

This commit is contained in:
Chris Ostrouchov 2019-05-20 10:54:34 -04:00
parent bec3cfaec3
commit d0c125ab6a
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, pybind11
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "pyfma";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "79514717f8e632a0fb165e3d61222ed61202bea7b0e082f7b41c91e738f1fbc9";
};
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;
license = licenses.mit;
maintainers = [ maintainers.costrouc];
};
}

View File

@ -3876,6 +3876,8 @@ in {
pyfantom = callPackage ../development/python-modules/pyfantom { }; pyfantom = callPackage ../development/python-modules/pyfantom { };
pyfma = callPackage ../development/python-modules/pyfma { };
pyfftw = callPackage ../development/python-modules/pyfftw { }; pyfftw = callPackage ../development/python-modules/pyfftw { };
pyfiglet = callPackage ../development/python-modules/pyfiglet { }; pyfiglet = callPackage ../development/python-modules/pyfiglet { };