2021-06-20 10:13:27 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-06-29 23:53:09 +01:00
|
|
|
, poetry-core
|
2021-06-20 10:13:27 +01:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enturclient";
|
2021-06-29 23:53:09 +01:00
|
|
|
version = "0.2.2";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
format = "pyproject";
|
2021-06-20 10:13:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hfurubotten";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-29 23:53:09 +01:00
|
|
|
sha256 = "1kl44ch8p31pr70yv6na2m0w40frackdwzph9rpb05sc83va701i";
|
2021-06-20 10:13:27 +01:00
|
|
|
};
|
|
|
|
|
2021-06-29 23:53:09 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-06-20 10:13:27 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|