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