summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyfma/default.nix
blob: d53c62e2f3a940e38756231dc998bf4f46f324ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, pybind11
, exdown
, numpy
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pyfma";
  version = "0.1.4";

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "5bc6bf57d960a5232b7a56bd38e9fe3dce0911016746029931044b66bdec46e9";
  };

  buildInputs = [
    pybind11
  ];

  checkInputs = [
    exdown
    numpy
    pytestCheckHook
  ];

  pythonImportsCheck = [ "pyfma" ];

  meta = with lib; {
    description = "Fused multiply-add for Python";
    homepage = "https://github.com/nschloe/pyfma";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc];
  };
}