about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/seventeentrack/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/seventeentrack/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/seventeentrack/default.nix19
1 files changed, 17 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/seventeentrack/default.nix b/nixpkgs/pkgs/development/python-modules/seventeentrack/default.nix
index 56bec419987a..351392aec46a 100644
--- a/nixpkgs/pkgs/development/python-modules/seventeentrack/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/seventeentrack/default.nix
@@ -1,10 +1,10 @@
 { lib
 , aiohttp
 , aresponses
-, async-timeout
 , attrs
 , buildPythonPackage
 , fetchFromGitHub
+, fetchpatch
 , poetry-core
 , pytest-asyncio
 , pytestCheckHook
@@ -26,17 +26,32 @@ buildPythonPackage rec {
     hash = "sha256-vMdRXcd0es/LjgsVyWItSLFzlSTEa3oaA6lr/NL4i8U=";
   };
 
+  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/McSwindler/seventeentrack/pull/4
+    #
+    (fetchpatch {
+      name = "clean-up-build-dependencies.patch";
+      url = "https://github.com/McSwindler/seventeentrack/commit/9a21e22f796a17628a9628f54e19d19d002b4d0a.patch";
+      hash = "sha256-UvxUpiSkDbP8Jum5XbrWHBnH1HLBYEKUKw6GTV+Kvys=";
+    })
+  ];
+
   nativeBuildInputs = [
     poetry-core
   ];
 
   propagatedBuildInputs = [
     aiohttp
-    async-timeout
     attrs
     pytz
   ];
 
+  __darwinAllowLocalNetworking = true;
+
   nativeCheckInputs = [
     aresponses
     pytest-asyncio