Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "pyweatherflowrest"; 11 version = "1.0.9"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "briis"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-LFA1GJCYFIWl7/YblRrYgAB4lbELpzhCJyjB8aCkJ/E="; 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 changelog = "https://github.com/briis/pyweatherflowrest/blob/v${version}/CHANGELOG.md"; 48 license = with licenses; [ mit ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}