2021-06-20 11:13:27 +02:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-06-30 00:53:09 +02:00
|
|
|
, poetry-core
|
2021-06-20 11:13:27 +02:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enturclient";
|
2021-06-30 00:53:09 +02:00
|
|
|
version = "0.2.2";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
format = "pyproject";
|
2021-06-20 11:13:27 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hfurubotten";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-30 00:53:09 +02:00
|
|
|
sha256 = "1kl44ch8p31pr70yv6na2m0w40frackdwzph9rpb05sc83va701i";
|
2021-06-20 11:13:27 +02:00
|
|
|
};
|
|
|
|
|
2021-06-30 00:53:09 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-06-20 11:13:27 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "enturclient" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interacting with the Entur.org API";
|
|
|
|
homepage = "https://github.com/hfurubotten/enturclient";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|