1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchPypi
5, pydantic
6, pythonOlder
7, setuptools
8}:
9
10buildPythonPackage rec {
11 pname = "peco";
12 version = "0.0.29";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-zL0tBTwm+l5eyxlWr2xoE+nLpMfUKri1/yD+WgTUqHQ=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 ];
25
26 propagatedBuildInputs = [
27 aiohttp
28 pydantic
29 ];
30
31 # Module has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "peco"
36 ];
37
38 meta = with lib; {
39 description = "Library for interacting with the PECO outage map";
40 homepage = "https://github.com/IceBotYT/peco-outage-api";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ fab ];
43 };
44}