btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / aiosteamist / default.nix
blob31e9ff403b7f862306b5cd9c4ecad2ae703db212
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   poetry-core,
7   pytestCheckHook,
8   pythonOlder,
9   xmltodict,
12 buildPythonPackage rec {
13   pname = "aiosteamist";
14   version = "1.0.0";
15   pyproject = true;
17   disabled = pythonOlder "3.10";
19   src = fetchFromGitHub {
20     owner = "bdraco";
21     repo = "aiosteamist";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-vqCcQDUMFFhIOoiER5TMOxJPY7HYFS4K1fuu/1IqP44=";
24   };
26   postPatch = ''
27     substituteInPlace pyproject.toml \
28       --replace-fail "--cov=aiosteamist" ""
29   '';
31   build-system = [ poetry-core ];
33   dependencies = [
34     aiohttp
35     xmltodict
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   pythonImportsCheck = [ "aiosteamist" ];
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   };