python38Packages.httplib2: resurrect

Without this patch, this is what happened:

```sh
➤ nix-build -A python38Packages.httplib2
error: flask-sqlalchemy-3.0.3 not supported for interpreter python3.8
(use '--show-trace' to show detailed location information)
```

That missing dependency was just for testing, but it doesn't make much sense to remove a package just because it can't be tested.

I just changed it so that it only runs checks when running at python >= 3.9, and now httplib2 is available for Python 3.8 again.
This commit is contained in:
Jairo Llopis 2023-06-14 13:52:15 +01:00
parent d7ac3423d3
commit 9c37f5aeb6
No known key found for this signature in database
GPG Key ID: E47E3BE44B940490

View File

@ -10,6 +10,7 @@
, pytest-randomly
, pytest-timeout
, pytestCheckHook
, pythonAtLeast
, six
}:
@ -39,8 +40,8 @@ buildPythonPackage rec {
pytestCheckHook
];
# Don't run tests for Python 2.7
doCheck = !isPy27;
# Don't run tests for older Pythons
doCheck = pythonAtLeast "3.9";
postPatch = ''
sed -i "/--cov/d" setup.cfg