diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tatsu')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/tatsu/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tatsu/default.nix b/nixpkgs/pkgs/development/python-modules/tatsu/default.nix index 539cbdca3ee..922ca1b9b95 100644 --- a/nixpkgs/pkgs/development/python-modules/tatsu/default.nix +++ b/nixpkgs/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 ] |