From e71b01a8fc34a2c3e3b67d354cb991c4ee9095cb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 26 Nov 2021 23:14:41 +0100 Subject: [PATCH] python3Packages.py17track: relax async_timeout constraint --- .../python-modules/py17track/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/py17track/default.nix b/pkgs/development/python-modules/py17track/default.nix index 2c7dc8e52eaf..89090258bd01 100644 --- a/pkgs/development/python-modules/py17track/default.nix +++ b/pkgs/development/python-modules/py17track/default.nix @@ -16,6 +16,7 @@ buildPythonPackage rec { pname = "py17track"; version = "3.3.0"; format = "pyproject"; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { @@ -44,13 +45,18 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace ">=19.3,<21.0" ">=19.3,<22.0" + --replace 'attrs = ">=19.3,<21.0"' 'attrs = ">=19.3,<22.0"' \ + --replace 'async-timeout = "^3.0.1"' 'async-timeout = ">=3.0.1,<5.0.0"' ''; - # Ignore the examples directory as the files are prefixed with test_ - disabledTestPaths = [ "examples/" ]; + disabledTestPaths = [ + # Ignore the examples directory as the files are prefixed with test_ + "examples/" + ]; - pythonImportsCheck = [ "py17track" ]; + pythonImportsCheck = [ + "py17track" + ]; meta = with lib; { description = "Python library to track package info from 17track.com";