fastcluster/ols: fix cross compilation to moby
This commit is contained in:
@@ -30,6 +30,13 @@ in
|
||||
# hash = "sha256-fGuS46f9qSMRHvWZvTmcirKufIqlXHwwhckeK1RNejE=";
|
||||
# })
|
||||
|
||||
(fetchpatch' {
|
||||
# xsimd is required by scipy, which is required by ols
|
||||
title = "xsimd: fix cross compilation";
|
||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/321253";
|
||||
hash = "sha256-0gC86tyoSEtpGBdz9ISc1WyCQm+ZM3epGzpK1PUNzCk=";
|
||||
})
|
||||
|
||||
(fetchpatch' {
|
||||
title = "unl0kr: 2.0.0 -> 3.2.0";
|
||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/319126";
|
||||
|
@@ -1,13 +1,14 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, oldest-supported-numpy
|
||||
, numpy
|
||||
, scipy
|
||||
, setuptools
|
||||
}: buildPythonPackage rec {
|
||||
pname = "mypackage";
|
||||
pname = "fastcluster";
|
||||
version = "1.2.6";
|
||||
# format = "pyproject"; # but i'd have to substitute "oldest_supported_numpy" -> "numpy"
|
||||
format = "setuptools";
|
||||
format = "pyproject";
|
||||
# format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fastcluster";
|
||||
@@ -16,13 +17,14 @@
|
||||
hash = "sha256-8FDipkAcOAI5zAC7JaJExe6HO1xHg+eXAL7IUIVrA3k=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
nativeBuildInputs = [
|
||||
oldest-supported-numpy
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
scipy
|
||||
];
|
||||
# propagatedBuildInputs = [
|
||||
# numpy
|
||||
# ];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"fastcluster"
|
||||
|
Reference in New Issue
Block a user