1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, aiohttp
6}:
7
8buildPythonPackage rec {
9 pname = "garages-amsterdam";
10 version = "2.1.1";
11 disabled = pythonOlder "3.7";
12
13 src = fetchFromGitHub {
14 owner = "klaasnicolaas";
15 repo = "garages_amsterdam";
16 rev = version;
17 sha256 = "1m0bc3bzb83apprk412s7k5r2g6p5br2hrak2a976lh9ifk1d8hj";
18 };
19
20 propagatedBuildInputs = [
21 aiohttp
22 ];
23
24 # The only test requires network access
25 doCheck = false;
26
27 pythonImportsCheck = [ "garages_amsterdam" ];
28
29 meta = with lib; {
30 description = "Python client for getting garage occupancy in Amsterdam";
31 homepage = "https://github.com/klaasnicolaas/garages_amsterdam";
32 license = licenses.mit;
33 maintainers = with maintainers; [ fab ];
34 };
35}