diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-05-20 10:54:34 -0400 |
---|---|---|
committer | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-05-20 10:54:34 -0400 |
commit | d0c125ab6a4dda5a0c82eeb07448af299b157fb5 (patch) | |
tree | b8b0a4519ceffbdece0abed7d03665e676a5ef57 /pkgs/development/python-modules/pyfma | |
parent | bec3cfaec34163dbd311f1f7d5b56015a6b340b9 (diff) |
pythonPackages.pyfma: init at 0.1.0
Diffstat (limited to 'pkgs/development/python-modules/pyfma')
-rw-r--r-- | pkgs/development/python-modules/pyfma/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyfma/default.nix b/pkgs/development/python-modules/pyfma/default.nix new file mode 100644 index 0000000000000..d9aab0b8faed3 --- /dev/null +++ b/pkgs/development/python-modules/pyfma/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pybind11 +, numpy +, pytest +}: + +buildPythonPackage rec { + pname = "pyfma"; + version = "0.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "79514717f8e632a0fb165e3d61222ed61202bea7b0e082f7b41c91e738f1fbc9"; + }; + + 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]; + }; +} |