nixpkgs/pkgs/development/python-modules/pyfma/default.nix

41 lines
660 B
Nix
Raw Normal View History

2019-05-20 07:54:34 -07:00
{ lib
, buildPythonPackage
2021-02-28 01:09:45 -08:00
, isPy27
2019-05-20 07:54:34 -07:00
, fetchPypi
, pybind11
2021-02-28 01:09:45 -08:00
, exdown
2019-05-20 07:54:34 -07:00
, numpy
2021-02-28 01:09:45 -08:00
, pytestCheckHook
2019-05-20 07:54:34 -07:00
}:
buildPythonPackage rec {
pname = "pyfma";
2021-02-20 01:09:13 -08:00
version = "0.1.2";
2019-05-20 07:54:34 -07:00
2021-02-28 01:09:45 -08:00
disabled = isPy27;
2019-05-20 07:54:34 -07:00
src = fetchPypi {
inherit pname version;
2021-02-20 01:09:13 -08:00
sha256 = "3a9e2503fd01baa4978af5f491b79b7646d7872df9ecc7ab63ba10c250c50d8a";
2019-05-20 07:54:34 -07:00
};
buildInputs = [
pybind11
];
checkInputs = [
2021-02-28 01:09:45 -08:00
exdown
2019-05-20 07:54:34 -07:00
numpy
2021-02-28 01:09:45 -08:00
pytestCheckHook
2019-05-20 07:54:34 -07:00
];
2021-02-28 01:09:45 -08:00
pythonImportsCheck = [ "pyfma" ];
2019-05-20 07:54:34 -07:00
meta = with lib; {
description = "Fused multiply-add for Python";
homepage = "https://github.com/nschloe/pyfma";
2019-05-20 07:54:34 -07:00
license = licenses.mit;
maintainers = [ maintainers.costrouc];
};
}