1{ lib 2, buildPythonPackage 3, certifi 4, chardet 5, fetchFromGitHub 6, idna 7, pythonOlder 8, requests 9, urllib3 10}: 11 12buildPythonPackage rec { 13 pname = "frigidaire"; 14 version = "0.18.13"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "bm1549"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-FikBV4KjutQfupGPXcVT1h+BfQ099WRrmbrEJOaVCQI="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace 'version = "SNAPSHOT"' 'version = "${version}"' 29 ''; 30 31 propagatedBuildInputs = [ 32 certifi 33 chardet 34 idna 35 requests 36 urllib3 37 ]; 38 39 # Project has no tests 40 doCheck = false; 41 42 pythonImportsCheck = [ 43 "frigidaire" 44 ]; 45 46 meta = with lib; { 47 description = "Python API for the Frigidaire devices"; 48 homepage = "https://github.com/bm1549/frigidaire"; 49 changelog = "https://github.com/bm1549/frigidaire/releases/tag/${version}"; 50 license = with licenses; [ mit ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}