Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyfma / default.nix
blobe0934dc34b89ab29e6483364b1a4736edbe80a70
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , importlib-metadata
5 , numpy
6 , pybind11
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
12 buildPythonPackage rec {
13   pname = "pyfma";
14   version = "0.1.6";
15   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "nschloe";
20     repo = pname;
21     rev = version;
22     sha256 = "12i68jj9n1qj9phjnj6f0kmfhlsd3fqjlk9p6d4gs008azw5m8yn";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   buildInputs = [
30     pybind11
31   ];
33   propagatedBuildInputs = [
34     numpy
35   ] ++ lib.optionals (pythonOlder "3.8") [
36     importlib-metadata
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "pyfma" ];
45   meta = with lib; {
46     description = "Fused multiply-add for Python";
47     homepage = "https://github.com/nschloe/pyfma";
48     license = licenses.mit;
49     maintainers = with maintainers; [ ];
50   };