1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #148421 from fabaff/fix-enturclient

python3Packages.enturclient: relax aysnc_timeout constraint
This commit is contained in:
Fabian Affolter 2021-12-07 12:18:36 +01:00 committed by GitHub
commit 7bc4ddb885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ buildPythonPackage rec {
pname = "enturclient";
version = "0.2.2";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchFromGitHub {
@ -29,10 +30,17 @@ buildPythonPackage rec {
async-timeout
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'async_timeout = "^3.0.1"' 'async_timeout = ">=3.0.1"'
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "enturclient" ];
pythonImportsCheck = [
"enturclient"
];
meta = with lib; {
description = "Python library for interacting with the Entur.org API";