1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "pyweatherflowrest"; 11 version = "1.0.8"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "briis"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "1swyqdnvhwaigqhjn5a22gi8if4bl8alfrigln4qa0jl9z03kg09"; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 28 propagatedBuildInputs = [ 29 aiohttp 30 ]; 31 32 postPatch = '' 33 substituteInPlace pyproject.toml \ 34 --replace "--cov=pyweatherflowrest --cov-append" "" 35 ''; 36 37 # Module has no tests. test.py is a demo script 38 doCheck = false; 39 40 pythonImportsCheck = [ 41 "pyweatherflowrest" 42 ]; 43 44 meta = with lib; { 45 description = "Python module to get data from WeatherFlow Weather Stations"; 46 homepage = "https://github.com/briis/pyweatherflowrest"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}