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