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