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