1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, aiohttp
6, yarl
7, aresponses
8, pytest-asyncio
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "twentemilieu";
14 version = "0.3.0";
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "frenck";
19 repo = "python-twentemilieu";
20 rev = "v${version}";
21 sha256 = "1ff35sh73m2s7fh4d8p2pjwdbfljswr8b8lpcjybz8nsh0286xph";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 yarl
27 ];
28
29 checkInputs = [
30 aresponses
31 pytest-asyncio
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "twentemilieu" ];
36
37 meta = with lib; {
38 description = "Python client for Twente Milieu";
39 homepage = "https://github.com/frenck/python-twentemilieu";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}