Merge pull request #151312 from fabaff/pyweatherflowrest

python3Packages.pyweatherflowrest: init at 0.1.21
This commit is contained in:
Fabian Affolter 2021-12-20 08:09:02 +01:00 committed by GitHub
commit 72e61a03e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyweatherflowrest";
version = "0.1.21";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "briis";
repo = pname;
rev = "v${version}";
sha256 = "sha256-lW7mhjCYrPBsHL0plHZo6L3OwZFHAzBK2TtNVre5Lt8=";
};
propagatedBuildInputs = [
aiohttp
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=pyweatherflowrest --cov-append" ""
'';
# Module has no tests. test.py is a demo script
doCheck = false;
pythonImportsCheck = [
"pyweatherflowrest"
];
meta = with lib; {
description = "Python module to get data from WeatherFlow Weather Stations";
homepage = "https://github.com/briis/pyweatherflowrest";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -8085,6 +8085,8 @@ in {
inherit (pkgs) libxml2;
};
pyweatherflowrest = callPackage ../development/python-modules/pyweatherflowrest { };
pywebpush = callPackage ../development/python-modules/pywebpush { };
pywebview = callPackage ../development/python-modules/pywebview { };