From b40c1582d7b5099d4b5298752413fb62b84a339a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 24 Aug 2021 11:52:16 +0200 Subject: [PATCH] gns3-server: update override --- pkgs/applications/networking/gns3/server.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/gns3/server.nix b/pkgs/applications/networking/gns3/server.nix index 761467088218..9feceffc0346 100644 --- a/pkgs/applications/networking/gns3/server.nix +++ b/pkgs/applications/networking/gns3/server.nix @@ -1,15 +1,27 @@ { stable, branch, version, sha256Hash, mkOverride, commonOverrides }: -{ lib, python3, fetchFromGitHub }: +{ lib, python3, fetchFromGitHub, packageOverrides ? self: super: {} + }: let defaultOverrides = commonOverrides ++ [ - (mkOverride "aiofiles" "0.5.0" - "98e6bcfd1b50f97db4980e182ddd509b7cc35909e903a8fe50d8849e02d815af") + (self: super: { + aiofiles = super.aiofiles.overridePythonAttrs (oldAttrs: rec { + pname = "aiofiles"; + version = "0.5.0"; + src = fetchFromGitHub { + owner = "Tinche"; + repo = pname; + rev = "v${version}"; + sha256 = "17bsg2x5r0q6jy74hajnbp717pvbf752w0wgih6pbb4hdvfg5lcf"; + }; + doCheck = false; + }); + }) ]; python = python3.override { - packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) defaultOverrides; + packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([ packageOverrides ] ++ defaultOverrides); }; in python.pkgs.buildPythonPackage { pname = "gns3-server";