lol

python3Packages.loguru: fix tests with Python 3.9

authored by

Robert Schütz and committed by
Jonathan Ringer
49235a4e 1e47dd9c

+7 -3
+7 -3
pkgs/development/python-modules/loguru/default.nix
··· 6 , isPy27 7 , colorama 8 , pytestCheckHook 9 - , pythonAtLeast 10 }: 11 12 buildPythonPackage rec { 13 pname = "loguru"; 14 version = "0.5.3"; 15 16 - # python3.9 compatibility should be in the next release after 0.5.3 17 - disabled = isPy27 || pythonAtLeast "3.9"; 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "b28e72ac7a98be3d28ad28570299a393dfcd32e5e3f6a353dec94675767b6319"; ··· 25 (fetchpatch { 26 url = "https://github.com/Delgan/loguru/commit/31cf758ee9d22dbfa125f38153782fe20ac9dce5.patch"; 27 sha256 = "1lzbs8akg1s7s6xjl3samf4c4bpssqvwg5fn3mwlm4ysr7jd5y67"; 28 }) 29 ]; 30
··· 6 , isPy27 7 , colorama 8 , pytestCheckHook 9 }: 10 11 buildPythonPackage rec { 12 pname = "loguru"; 13 version = "0.5.3"; 14 15 + disabled = isPy27; 16 + 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "b28e72ac7a98be3d28ad28570299a393dfcd32e5e3f6a353dec94675767b6319"; ··· 24 (fetchpatch { 25 url = "https://github.com/Delgan/loguru/commit/31cf758ee9d22dbfa125f38153782fe20ac9dce5.patch"; 26 sha256 = "1lzbs8akg1s7s6xjl3samf4c4bpssqvwg5fn3mwlm4ysr7jd5y67"; 27 + }) 28 + # fix tests with Python 3.9 29 + (fetchpatch { 30 + url = "https://github.com/Delgan/loguru/commit/19f518c5f1f355703ffc4ee62f0e1e397605863e.patch"; 31 + sha256 = "0yn6smik58wdffr4svqsy2n212fwdlcfcwpgqhl9hq2zlivmsdc6"; 32 }) 33 ]; 34