This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix build on mac by update to python3.10
- Loading branch information
Showing
8 changed files
with
920 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,38 @@ | ||
{ pkgs }: | ||
pkgs.poetry2nix.mkPoetryEnv { | ||
{ poetry2nix, lib, python310 }: | ||
poetry2nix.mkPoetryEnv { | ||
projectDir = ../tests/integration_tests; | ||
python = pkgs.python39; | ||
overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: { | ||
eth-bloom = super.eth-bloom.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
}; | ||
|
||
pystarport = super.pystarport.overridePythonAttrs ( | ||
old: { | ||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.poetry ]; | ||
} | ||
); | ||
}); | ||
python = python310; | ||
overrides = poetry2nix.overrides.withDefaults (lib.composeManyExtensions [ | ||
(self: super: | ||
let | ||
buildSystems = { | ||
eth-bloom = [ "setuptools" ]; | ||
pystarport = [ "poetry" ]; | ||
durations = [ "setuptools" ]; | ||
multitail2 = [ "setuptools" ]; | ||
pytest-github-actions-annotate-failures = [ "setuptools" ]; | ||
flake8-black = [ "setuptools" ]; | ||
multiaddr = [ "setuptools" ]; | ||
}; | ||
in | ||
lib.mapAttrs | ||
(attr: systems: super.${attr}.overridePythonAttrs | ||
(old: { | ||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ map (a: self.${a}) systems; | ||
})) | ||
buildSystems | ||
) | ||
(self: super: { | ||
eth-bloom = super.eth-bloom.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
}; | ||
pyyaml-include = super.pyyaml-include.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace "setup()" "setup(version=\"1.3\")" | ||
''; | ||
}; | ||
}) | ||
]); | ||
} |
Oops, something went wrong.