From 3fbb3a13c8db51024be0768cd18090ca36bda136 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 25 Sep 2021 09:18:28 +0100 Subject: [PATCH] python39Packages.phik: fix build Before the change `phik `failed to fetch the wheel: error: cannot download phik-0.12.0-py3-none-any.whl from any mirror Looking at https://pypi.org/project/phik/#modal-close there is a setuptools style package: phik-0.12.0.tar.gz (44.2 kB) This change pulls it in and adds enough dependencies to build shared library. Closes: https://github.com/NixOS/nixpkgs/issues/138328 --- .../python-modules/phik/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/phik/default.nix b/pkgs/development/python-modules/phik/default.nix index 09a240f4c4a6..e4e427dfe7c2 100644 --- a/pkgs/development/python-modules/phik/default.nix +++ b/pkgs/development/python-modules/phik/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, cmake , fetchPypi , isPy3k , pytest @@ -11,19 +12,19 @@ , scipy , pandas , matplotlib +, ninja , numba +, pybind11 }: buildPythonPackage rec { pname = "phik"; version = "0.12.0"; - format = "wheel"; disabled = !isPy3k; src = fetchPypi { - inherit pname version format; - python = "py3"; - sha256 = "57db39d1c74c84a24d0270b63d1c629a5cb975462919895b96a8522ae0678408"; + inherit pname version; + sha256 = "959fd40482246e3f643cdac5ea04135b2c11a487e917af7d4e75843f47183549"; }; checkInputs = [ @@ -40,6 +41,15 @@ buildPythonPackage rec { pandas matplotlib numba + pybind11 + ]; + + # uses setuptools to drive build process + dontUseCmakeConfigure = true; + + nativeBuildInputs = [ + cmake + ninja ]; postInstall = ''