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

41 lines
660 B
Nix
Raw Normal View History

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