3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pydelijn: support for async_timeout >4

This commit is contained in:
Fabian Affolter 2021-12-03 12:35:54 +01:00
parent 745f45dace
commit 19b3258ea0
2 changed files with 16 additions and 3 deletions

View file

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "devolo-plc-api";
version = "0.6.4";
version = "0.7.0";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "2Fake";
repo = "devolo_plc_api";
rev = "v${version}";
sha256 = "sha256-hlIHNVJG/2hU5psGXhi05SCupORfgIjB+YT/ZlJEqFM=";
sha256 = "sha256-qzjH52bKQ/oSFd580V92uE2/Z2g+2nLh/JXOXYqVfSY=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;

View file

@ -10,6 +10,8 @@
buildPythonPackage rec {
pname = "pydelijn";
version = "0.6.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
@ -23,10 +25,21 @@ buildPythonPackage rec {
pytz
];
postPatch = ''
# Remove with next release
substituteInPlace setup.py \
--replace "async_timeout>=3.0.1,<4.0" "async_timeout>=3.0.1"
# https://github.com/bollewolle/pydelijn/pull/11
substituteInPlace pydelijn/common.py \
--replace ", loop=self.loop" ""
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pydelijn" ];
pythonImportsCheck = [
"pydelijn"
];
meta = with lib; {
description = "Python package to retrieve realtime data of passages at stops of De Lijn";