about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyfma/default.nix
blob: 6c7038b94888b7a7e612d23a4c1eea40aaba7d73 (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
41
{ 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];
  };
}