mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
Compare commits
1 Commits
nixos-25.1
...
pr/pymoo_0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d8161e618 |
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pytestCheckHook
|
||||
, writeText
|
||||
, autograd
|
||||
@@ -19,13 +20,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymoo";
|
||||
version = "0.6.0";
|
||||
version = "0.6.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "anyoptimization";
|
||||
repo = "pymoo";
|
||||
rev = version;
|
||||
hash = "sha256-dzKr+u84XmPShWXFjH7V9KzwJPGZz3msGOe1S7FlGTQ=";
|
||||
hash = "sha256-+qtW7hfSo266n1SRzAgHIu99W5Sl+NYbKOHXv/JI9IA=";
|
||||
};
|
||||
|
||||
pymoo_data = fetchFromGitHub {
|
||||
@@ -35,6 +36,14 @@ buildPythonPackage rec {
|
||||
hash = "sha256-iGWPepZw3kJzw5HKV09CvemVvkvFQ38GVP+BAryBSs0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/anyoptimization/pymoo/pull/407
|
||||
(fetchpatch {
|
||||
url = "https://github.com/anyoptimization/pymoo/commit/be57ece64275469daece1e8ef12b2b6ee05362c9.diff";
|
||||
hash = "sha256-BLPrUqNbAsAecfYahESEJF6LD+kehUYmkTvl/nvyqII=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "cma==3.2.2" "cma" \
|
||||
|
||||
Reference in New Issue
Block a user