diff options
author | Robert Scott <code@humanleg.org.uk> | 2024-06-01 00:09:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 00:09:26 +0100 |
commit | 57610d2f8f0937f39dbd72251e9614b1561942d8 (patch) | |
tree | cc2882f5753112ff8ba1362b334ad1008514fabf | |
parent | 2181a4548dc5887e6eb6e224e88901e92436d13b (diff) | |
parent | ab79492899c0a76a9c2eed79a6a216cceeeee0d4 (diff) |
Merge pull request #316131 from wegank/wasserstein-fix
python311Packages.wasserstein: fix build on aarch64-linux
-rw-r--r-- | pkgs/development/python-modules/wasserstein/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/wasserstein/default.nix b/pkgs/development/python-modules/wasserstein/default.nix index c4534dcdf5d03..c9a9495b42ef3 100644 --- a/pkgs/development/python-modules/wasserstein/default.nix +++ b/pkgs/development/python-modules/wasserstein/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, numpy, llvmPackages, wurlitzer, @@ -16,10 +17,17 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pkomiske"; repo = "Wasserstein"; - rev = "89c2d6279a7e0aa3b56bcc8fb7b6009420f2563e"; # https://github.com/pkomiske/Wasserstein/issues/1 + rev = "v${version}"; hash = "sha256-s9en6XwvO/WPsF7/+SEmGePHZQgl7zLgu5sEn4nD9YE="; }; + patches = [ + (fetchpatch { + url = "https://github.com/thaler-lab/Wasserstein/commit/8667d59dfdf89eabf01f3ae93b23a30a27c21c58.patch"; + hash = "sha256-jp5updB3E1MYgLhBJwmBMTwBiFXtABMwTxt0G6xhoyA="; + }) + ]; + buildInputs = [ llvmPackages.openmp ]; propagatedBuildInputs = [ numpy |