Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 647 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pybind11 5, numpy 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "pyfma"; 11 version = "0.1.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "2c9ea44c5e30ca8318ca794ff1e3941d3dc7958901b1a9c430d38734bf7b6f8d"; 16 }; 17 18 buildInputs = [ 19 pybind11 20 ]; 21 22 checkInputs = [ 23 numpy 24 pytest 25 ]; 26 27 preBuild = '' 28 export HOME=$(mktemp -d) 29 ''; 30 31 checkPhase = '' 32 pytest test 33 ''; 34 35 meta = with lib; { 36 description = "Fused multiply-add for Python"; 37 homepage = "https://github.com/nschloe/pyfma"; 38 license = licenses.mit; 39 maintainers = [ maintainers.costrouc]; 40 }; 41}