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

41 lines
660 B
Nix
Raw Normal View History

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