1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, pythonOlder 7, xmltodict 8}: 9 10buildPythonPackage rec { 11 pname = "aiosteamist"; 12 version = "0.3.2"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "bdraco"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-IKrAJ4QDcYJRO4hcomL9FRs8hJ3k7SgRgK4H1b8SxIM="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 ]; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 xmltodict 31 ]; 32 33 postPatch = '' 34 substituteInPlace pyproject.toml \ 35 --replace "--cov=aiosteamist" "" \ 36 --replace 'xmltodict = "^0.12.0"' 'xmltodict = "*"' 37 ''; 38 39 pythonImportsCheck = [ 40 "aiosteamist" 41 ]; 42 43 # Modules doesn't have test suite 44 doCheck = false; 45 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 }; 52}