diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-22 14:45:26 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-22 14:45:26 -0700 |
commit | 85e85bd58d372b9e14217defb94fa8741ddb83c7 (patch) | |
tree | cc1169a8ec335d484557e042495229a67f1d6694 /pkgs/development/python-modules/aionotion | |
parent | f491e53e23e20a1474f87230fde0acdbb164889c (diff) |
python3.pkgs.aionotion: clean up build dependency constraints
Diffstat (limited to 'pkgs/development/python-modules/aionotion')
-rw-r--r-- | pkgs/development/python-modules/aionotion/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aionotion/default.nix b/pkgs/development/python-modules/aionotion/default.nix index 08235b793e006..c99a317d2ca1b 100644 --- a/pkgs/development/python-modules/aionotion/default.nix +++ b/pkgs/development/python-modules/aionotion/default.nix @@ -3,6 +3,7 @@ , aresponses , buildPythonPackage , fetchFromGitHub +, fetchpatch , poetry-core , pydantic , pytest-aiohttp @@ -26,6 +27,20 @@ buildPythonPackage rec { hash = "sha256-/2sF8m5R8YXkP89bi5zR3h13r5LrFOl1OsixAcX0D4o="; }; + patches = [ + # This patch removes references to setuptools and wheel that are no longer + # necessary and changes poetry to poetry-core, so that we don't need to add + # unnecessary nativeBuildInputs. + # + # https://github.com/bachya/aionotion/pull/269 + # + (fetchpatch { + name = "clean-up-build-dependencies.patch"; + url = "https://github.com/bachya/aionotion/commit/53c7285110d12810f9b43284295f71d052a81b83.patch"; + hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM="; + }) + ]; + nativeBuildInputs = [ poetry-core ]; @@ -35,6 +50,8 @@ buildPythonPackage rec { pydantic ]; + __darwinAllowLocalNetworking = true; + nativeCheckInputs = [ aresponses pytest-aiohttp |