Merge pull request #239706 from fabaff/sense-energy-bump
python311Packages.sense-energy: 0.11.2 -> 0.12.0
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kasa-crypt";
|
||||
version = "0.2.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = "kasa-crypt";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-w/LA3BqxUcu1+nwq55g+v/QMhz8/uCTz2aRDYIdGPtk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=kasa_crypt --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
poetry-core
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"kasa_crypt"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast kasa crypt";
|
||||
homepage = "https://github.com/bdraco/kasa-crypt";
|
||||
changelog = "https://github.com/bdraco/kasa-crypt/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, async-timeout
|
||||
, kasa-crypt
|
||||
, orjson
|
||||
, pythonOlder
|
||||
, requests
|
||||
@@ -12,7 +13,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sense-energy";
|
||||
version = "0.11.2";
|
||||
version = "0.12.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -21,7 +22,7 @@ buildPythonPackage rec {
|
||||
owner = "scottbonline";
|
||||
repo = "sense";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-i6XI6hiQTOGHB4KcDgz/MlYAhdEKaElLfNMq2R0fgu8=";
|
||||
hash = "sha256-LVpTB7Q78N/cRbneJJ1aT+lFE790ssdMHo8VRirtDHY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -32,6 +33,7 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
kasa-crypt
|
||||
orjson
|
||||
requests
|
||||
websocket-client
|
||||
@@ -48,6 +50,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "API for the Sense Energy Monitor";
|
||||
homepage = "https://github.com/scottbonline/sense";
|
||||
changelog = "https://github.com/scottbonline/sense/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
|
||||
@@ -5435,6 +5435,8 @@ self: super: with self; {
|
||||
|
||||
karton-yaramatcher = callPackage ../development/python-modules/karton-yaramatcher { };
|
||||
|
||||
kasa-crypt = callPackage ../development/python-modules/kasa-crypt { };
|
||||
|
||||
kazoo = callPackage ../development/python-modules/kazoo { };
|
||||
|
||||
kbcstorage = callPackage ../development/python-modules/kbcstorage { };
|
||||
|
||||
Reference in New Issue
Block a user