Merge pull request #148713 from fabaff/myhome

python3Packages.myhome: init at 0.2.1
This commit is contained in:
Fabian Affolter 2021-12-06 23:38:52 +01:00 committed by GitHub
commit 33b49140d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, python-dateutil
, pythonOlder
, urllib3
}:
buildPythonPackage rec {
pname = "myhome";
version = "0.2.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "speijnik";
repo = pname;
rev = "v${version}";
sha256 = "sha256-DJzwvgvSA9Q0kpueUoQV64pdDDNA7WzGu7r+g5aqutk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
python-dateutil
urllib3
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"myhome"
];
meta = with lib; {
description = "Python library for interacting with MyHomeSERVER1";
homepage = "https://github.com/speijnik/myhome";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -5046,6 +5046,8 @@ in {
mygpoclient = callPackage ../development/python-modules/mygpoclient { };
myhome = callPackage ../development/python-modules/myhome { };
myjwt = callPackage ../development/python-modules/myjwt { };
mypy = callPackage ../development/python-modules/mypy { };