Skip to content

Commit

Permalink
Merge pull request #1881 from mmsqe/eth_utils
Browse files Browse the repository at this point in the history
fix: rm override workaround for eth-utils
  • Loading branch information
Nebucatnetzer authored Jan 7, 2025
2 parents a495865 + 8ce31f2 commit 058cce6
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 3 deletions.
3 changes: 0 additions & 3 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -883,9 +883,6 @@ lib.composeManyExtensions [
'';
};

# FIXME: this is a workaround for https://github.com/nix-community/poetry2nix/issues/1161
eth-utils = prev.eth-utils.override { preferWheel = true; };

evdev = prev.evdev.overridePythonAttrs (_old: {
preConfigure = ''
substituteInPlace setup.py --replace-warn /usr/include/linux ${pkgs.linuxHeaders}/include/linux
Expand Down
1 change: 1 addition & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,5 @@ in
# sandboxing issue?
dependency-environment = callTest ./dependency-environment { };
editable-egg = callTest ./editable-egg { };
eth-utils= callTest ./eth-utils { };
}
13 changes: 13 additions & 0 deletions tests/eth-utils/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ poetry2nix, python311, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
python = python311;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
};
in
runCommand "eth-utils-test"
{ } ''
${env}/bin/python -c 'import eth_utils'
touch $out
''
Loading

0 comments on commit 058cce6

Please sign in to comment.