diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2022-01-13 16:08:50 -0800 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-01-13 16:36:54 -0800 |
commit | 2d377340cafb32c709a406fc61530362a8cbf74e (patch) | |
tree | 0ab54abd091d8bc9bcd96074618c215caf731f10 /pkgs/development/python-modules/cssutils | |
parent | a2d4e9551d4c78fbc3004a17d38ff0154ca3a3db (diff) |
python310Packages.cssutils: fix tests
Diffstat (limited to 'pkgs/development/python-modules/cssutils')
-rw-r--r-- | pkgs/development/python-modules/cssutils/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cssutils/default.nix b/pkgs/development/python-modules/cssutils/default.nix index 9d1aec8625084..6c1c5de2c56ab 100644 --- a/pkgs/development/python-modules/cssutils/default.nix +++ b/pkgs/development/python-modules/cssutils/default.nix @@ -1,6 +1,8 @@ { lib , buildPythonPackage +, pythonAtLeast , pythonOlder +, fetchpatch , fetchPypi , setuptools-scm , toml @@ -22,6 +24,14 @@ buildPythonPackage rec { sha256 = "sha256-stOxYEfKroLlxZADaTW6+htiHPRcLziIWvS+SDjw/QA="; }; + patches = lib.optionals (pythonAtLeast "3.10") [ + # fix tests for python3.10 + (fetchpatch { + url = "https://github.com/jaraco/cssutils/pull/17/commits/355b1795dde77bd4b49d8df35377230fdb503802.patch"; + sha256 = "sha256-hwe8oeZO2rq00cs079lje3wjQDEczAu3Tfy/X/M9+GQ="; + }) + ]; + nativeBuildInputs = [ setuptools-scm toml |