From c615c44b7289540dcda2c0e9466803b80116a2e3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Dec 2021 12:41:06 +0100 Subject: [PATCH] python3Packages.enturclient: relax aysnc_timeout constraint --- .../development/python-modules/enturclient/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/enturclient/default.nix b/pkgs/development/python-modules/enturclient/default.nix index f98b38396efc..07363a379b1f 100644 --- a/pkgs/development/python-modules/enturclient/default.nix +++ b/pkgs/development/python-modules/enturclient/default.nix @@ -11,6 +11,7 @@ buildPythonPackage rec { pname = "enturclient"; version = "0.2.2"; disabled = pythonOlder "3.8"; + format = "pyproject"; src = fetchFromGitHub { @@ -29,10 +30,17 @@ buildPythonPackage rec { async-timeout ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'async_timeout = "^3.0.1"' 'async_timeout = ">=3.0.1"' + ''; + # Project has no tests doCheck = false; - pythonImportsCheck = [ "enturclient" ]; + pythonImportsCheck = [ + "enturclient" + ]; meta = with lib; { description = "Python library for interacting with the Entur.org API";