Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aiosteamist / default.nix
blob535594e3d28dd48e275f67b9932e935438240727
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , poetry-core
6 , pythonOlder
7 , xmltodict
8 }:
10 buildPythonPackage rec {
11   pname = "aiosteamist";
12   version = "0.3.2";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "bdraco";
19     repo = pname;
20     rev = version;
21     hash = "sha256-IKrAJ4QDcYJRO4hcomL9FRs8hJ3k7SgRgK4H1b8SxIM=";
22   };
24   nativeBuildInputs = [
25     poetry-core
26   ];
28   propagatedBuildInputs = [
29     aiohttp
30     xmltodict
31   ];
33   postPatch = ''
34     substituteInPlace pyproject.toml \
35       --replace "--cov=aiosteamist" "" \
36       --replace 'xmltodict = "^0.12.0"' 'xmltodict = "*"'
37   '';
39   pythonImportsCheck = [
40     "aiosteamist"
41   ];
43   # Modules doesn't have test suite
44   doCheck = false;
46   meta = with lib; {
47     description = "Module to control Steamist steam systems";
48     homepage = "https://github.com/bdraco/aiosteamist";
49     license = with licenses; [ asl20 ];
50     maintainers = with maintainers; [ fab ];
51   };