Merge pull request #151312 from fabaff/pyweatherflowrest

python3Packages.pyweatherflowrest: init at 0.1.21

authored by Fabian Affolter and committed by GitHub 72e61a03 32c7fb30

+46
+44
pkgs/development/python-modules/pyweatherflowrest/default.nix
··· 1 + { lib 2 + , aiohttp 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , pythonOlder 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "pyweatherflowrest"; 10 + version = "0.1.21"; 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 = "sha256-lW7mhjCYrPBsHL0plHZo6L3OwZFHAzBK2TtNVre5Lt8="; 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 + }
+2
pkgs/top-level/python-packages.nix
··· 8085 8085 inherit (pkgs) libxml2; 8086 8086 }; 8087 8087 8088 + pyweatherflowrest = callPackage ../development/python-modules/pyweatherflowrest { }; 8089 + 8088 8090 pywebpush = callPackage ../development/python-modules/pywebpush { }; 8089 8091 8090 8092 pywebview = callPackage ../development/python-modules/pywebview { };