1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pytestCheckHook,
8 pythonOlder,
9 xmltodict,
10}:
11
12buildPythonPackage rec {
13 pname = "aiosteamist";
14 version = "1.0.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "bdraco";
21 repo = "aiosteamist";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-vqCcQDUMFFhIOoiER5TMOxJPY7HYFS4K1fuu/1IqP44=";
24 };
25
26 postPatch = ''
27 substituteInPlace pyproject.toml \
28 --replace-fail "--cov=aiosteamist" ""
29 '';
30
31 build-system = [ poetry-core ];
32
33 dependencies = [
34 aiohttp
35 xmltodict
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [ "aiosteamist" ];
43
44 meta = with lib; {
45 description = "Module to control Steamist steam systems";
46 homepage = "https://github.com/bdraco/aiosteamist";
47 changelog = "https://github.com/bdraco/aiosteamist/releases/tag/v${version}";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ fab ];
50 };
51}