diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-03-30 11:43:48 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-03-30 11:43:48 +0200 |
commit | 056509befe0f0b199a54f3c51b44be24a6d1b0ec (patch) | |
tree | a23f571a6235ee3a42b62018757839573d2216de /pkgs/applications | |
parent | f79252abc3eb82b49e3f1de4720891a629e24b1f (diff) |
gns3-server: migrate to pythonRelaxDepsHook
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/gns3/server.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/pkgs/applications/networking/gns3/server.nix b/pkgs/applications/networking/gns3/server.nix index 5bc6e9be80c2e..e7c548c67d08b 100644 --- a/pkgs/applications/networking/gns3/server.nix +++ b/pkgs/applications/networking/gns3/server.nix @@ -17,16 +17,20 @@ python3.pkgs.buildPythonApplication { src = fetchFromGitHub { owner = "GNS3"; repo = "gns3-server"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; sha256 = sha256Hash; }; - postPatch = '' - substituteInPlace requirements.txt \ - --replace "psutil==" "psutil>=" \ - --replace "jsonschema>=4.17.0,<4.18" "jsonschema" \ - --replace "sentry-sdk==1.10.1,<1.11" "sentry-sdk" - ''; + pythonRelaxDeps = [ + "aiofiles" + "jsonschema" + "psutil" + "sentry-sdk" + ]; + + nativeBuildInputs = with python3.pkgs; [ + pythonRelaxDepsHook + ]; propagatedBuildInputs = with python3.pkgs; [ aiofiles |