depot/third_party/nixpkgs/pkgs/development/python-modules/pyfma/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

41 lines
647 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pybind11
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "pyfma";
version = "0.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "2c9ea44c5e30ca8318ca794ff1e3941d3dc7958901b1a9c430d38734bf7b6f8d";
};
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];
};
}