Merge pull request #148416 from fabaff/fix-pydelijn
python3Packages.pydelijn: support for async_timeout >4
This commit is contained in:
commit
dd31b07817
2 changed files with 16 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue