git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit3fbb3a13c8db51024be0768cd18090ca36bda136 authorSergei Trofimovich <slyich@gmail.com> dateSat 25 Sep 2021, 09:18 (5 years ago) parent7fa76be
1 file changed+14−4
pkgs/development/python-modules/phik/default.nix+14−4
pkgs/development/python-modules/phik/default.nix+14−4
@@ -1,5 +1,6 @@
11{ lib
22, buildPythonPackage
3+, cmake
34, fetchPypi
45, isPy3k
56, pytest
@@ -11,19 +12,19 @@
1112, scipy
1213, pandas
1314, matplotlib
15+, ninja
1416, numba
17+, pybind11
1518}:
1619
1720buildPythonPackage rec {
1821 pname = "phik";
1922 version = "0.12.0";
20− format = "wheel";
2123 disabled = !isPy3k;
2224
2325 src = fetchPypi {
24− inherit pname version format;
25− python = "py3";
26− sha256 = "57db39d1c74c84a24d0270b63d1c629a5cb975462919895b96a8522ae0678408";
26+ inherit pname version;
27+ sha256 = "959fd40482246e3f643cdac5ea04135b2c11a487e917af7d4e75843f47183549";
2728 };
2829
2930 checkInputs = [
@@ -40,6 +41,15 @@ buildPythonPackage rec {
4041 pandas
4142 matplotlib
4243 numba
44+ pybind11
45+ ];
46+
47+ # uses setuptools to drive build process
48+ dontUseCmakeConfigure = true;
49+
50+ nativeBuildInputs = [
51+ cmake
52+ ninja
4353 ];
4454
4555 postInstall = ''