From a58404485592b22983e080c711136c8c20a1e37b Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Mon, 27 Jan 2020 19:02:50 +0100 Subject: [PATCH] python38Packages.tatsu: 4.4.0 -> 5.0.0 Changelog: https://github.com/neogeny/TatSu/blob/v5.0.0/CHANGELOG.rst#500--2020-01-26 I've successfully tested the Python 3.7 support with python3Packages.ics. --- pkgs/development/python-modules/tatsu/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tatsu/default.nix b/pkgs/development/python-modules/tatsu/default.nix index 539cbdca3ee1..922ca1b9b957 100644 --- a/pkgs/development/python-modules/tatsu/default.nix +++ b/pkgs/development/python-modules/tatsu/default.nix @@ -6,15 +6,23 @@ buildPythonPackage rec { pname = "TatSu"; - version = "4.4.0"; + version = "5.0.0"; src = fetchFromGitHub { owner = "neogeny"; repo = pname; rev = "v${version}"; - sha256 = "1jjd73yr3x56ij2ggxf6s62mf90i9v7wn3i0h67zxys55hlp2yh4"; + sha256 = "1c16fcxf0xjkh5py9bnj6ljb9krhrj57mkwayl1w1dvzwl5lkgj3"; }; + # Since version 5.0.0 only >=3.8 is officially supported, but ics is not + # compatible with Python 3.8 due to aiohttp: + disabled = pythonOlder "3.7"; + postPatch = '' + substituteInPlace setup.py \ + --replace "python_requires='>=3.8'," "python_requires='>=3.7'," + ''; + nativeBuildInputs = [ pytestrunner ]; propagatedBuildInputs = [ colorama mypy pyyaml regex ] ++ stdenv.lib.optionals (pythonOlder "3.7") [ dataclasses ]