python3Packages.py-melissa-climate: init at 2.1.2 (#432717)
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
aiohttp,
|
||||
requests,
|
||||
requests-futures,
|
||||
pytestCheckHook,
|
||||
mock,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py-melissa-climate";
|
||||
version = "2.1.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kennedyshead";
|
||||
repo = "py-melissa-climate";
|
||||
tag = "V${version}";
|
||||
hash = "sha256-Z1A0G3g8dyoG+zUxUTqI/OxczvUVy2kSI04YP0WeXso=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "setup_requires=['setuptools-markdown']," ""
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
requests
|
||||
requests-futures
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Disable failing tests due to upstream bugs
|
||||
"test_have_connection"
|
||||
"test_send"
|
||||
"test_send_ok"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "melissa" ];
|
||||
|
||||
meta = {
|
||||
description = "API wrapper for Melissa Climate";
|
||||
homepage = "https://github.com/kennedyshead/py-melissa-climate";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.jamiemagee ];
|
||||
};
|
||||
}
|
||||
@@ -3514,7 +3514,8 @@
|
||||
];
|
||||
"melissa" =
|
||||
ps: with ps; [
|
||||
]; # missing inputs: py-melissa-climate
|
||||
py-melissa-climate
|
||||
];
|
||||
"melnor" =
|
||||
ps: with ps; [
|
||||
aioesphomeapi
|
||||
@@ -7358,6 +7359,7 @@
|
||||
"media_player"
|
||||
"media_source"
|
||||
"melcloud"
|
||||
"melissa"
|
||||
"melnor"
|
||||
"meraki"
|
||||
"met"
|
||||
|
||||
@@ -12262,6 +12262,8 @@ self: super: with self; {
|
||||
|
||||
py-madvr2 = callPackage ../development/python-modules/py-madvr2 { };
|
||||
|
||||
py-melissa-climate = callPackage ../development/python-modules/py-melissa-climate { };
|
||||
|
||||
py-multiaddr = callPackage ../development/python-modules/py-multiaddr { };
|
||||
|
||||
py-multibase = callPackage ../development/python-modules/py-multibase { };
|
||||
|
||||
Reference in New Issue
Block a user