From 357dde4ba4248438cc97472469cd030e3418e0c2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 09:05:02 +0200 Subject: [PATCH] python310Packages.aiobiketrax: allow later auth0-python releases --- .../python-modules/aiobiketrax/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiobiketrax/default.nix b/pkgs/development/python-modules/aiobiketrax/default.nix index f1196c0ce83d..399f499b380c 100644 --- a/pkgs/development/python-modules/aiobiketrax/default.nix +++ b/pkgs/development/python-modules/aiobiketrax/default.nix @@ -9,6 +9,7 @@ , pytestCheckHook , python-dateutil , pythonOlder +, pythonRelaxDepsHook }: buildPythonPackage rec { @@ -21,12 +22,23 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "basilfx"; repo = pname; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-exxpJJA+JnVuehCnWs/ihk/SSPUqV7ODXZxvbmuHe8U="; }; + postPatch = '' + # https://github.com/basilfx/aiobiketrax/pull/63 + substituteInPlace aiobiketrax/api.py \ + --replace "auth0.v3" "auth0" + ''; + + pythonRelaxDeps = [ + "auth0-python" + ]; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [