nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

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