1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 poetry-core,
8 pythonOlder,
9 unittestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "enturclient";
14 version = "0.2.4";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "hfurubotten";
21 repo = "enturclient";
22 rev = "v${version}";
23 hash = "sha256-Y2sBPikCAxumylP1LUy8XgjBRCWaNryn5XHSrRjJIIo=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 aiohttp
30 async-timeout
31 ];
32
33 pythonRelaxDeps = [
34 "async_timeout"
35 ];
36
37 pythonImportsCheck = [ "enturclient" ];
38
39 nativeCheckInputs = [
40 unittestCheckHook
41 ];
42
43 unittestFlagsArray = [
44 "tests/dto/"
45 ];
46
47 meta = with lib; {
48 description = "Python library for interacting with the Entur.org API";
49 homepage = "https://github.com/hfurubotten/enturclient";
50 license = with licenses; [ mit ];
51 maintainers = with maintainers; [ fab ];
52 };
53}