nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 numpy, 7 pybind11, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pyfma"; 14 version = "0.1.6"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "nschloe"; 19 repo = "pyfma"; 20 rev = version; 21 hash = "sha256-1qNa+FcIAP1IMzdNKrEbTVPo6gTOSCvhTRIHm6REJoo="; 22 }; 23 24 patches = [ 25 # Replace deprecated np.find_common_type calls with np.promote_types, https://github.com/nschloe/pyfma/pull/17 26 (fetchpatch { 27 url = "https://github.com/nschloe/pyfma/commit/e12d69d97a97657ab4fec3e8f2b2859f4360bc03.patch"; 28 hash = "sha256-BsQe4hpo+Cripa0FRGFnRBs1oQ1GZA1+ZYzycy5M4Ek="; 29 }) 30 ]; 31 32 build-system = [ setuptools ]; 33 34 buildInputs = [ pybind11 ]; 35 36 dependencies = [ numpy ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "pyfma" ]; 41 42 meta = { 43 description = "Fused multiply-add for Python"; 44 homepage = "https://github.com/nschloe/pyfma"; 45 changelog = "https://github.com/nschloe/pyfma/releases/tag/${version}"; 46 license = lib.licenses.mit; 47 maintainers = [ ]; 48 }; 49}