1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchPypi,
6 poetry-core,
7 pydantic,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "peco";
13 version = "0.1.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-xW65tEL86ecOfGIbnGiSnKtq7SmKQxW2eMTVrs/nxNc=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [
26 aiohttp
27 pydantic
28 ];
29
30 # Module has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "peco" ];
34
35 meta = with lib; {
36 description = "Library for interacting with the PECO outage map";
37 homepage = "https://github.com/IceBotYT/peco-outage-api";
38 changelog = "https://github.com/IceBotYT/peco-outage-api/releases/tag/${version}";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];
41 };
42}