Merge pull request #285885 from r-ryantm/auto-update/python311Packages.sense-energy

python311Packages.sense-energy: 0.12.2 -> 0.12.3
This commit is contained in:
Robert Schütz 2024-02-03 06:29:50 +00:00 committed by GitHub
commit 4f301350da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, aiohttp
, ciso8601
, async-timeout
@ -14,8 +15,8 @@
buildPythonPackage rec {
pname = "sense-energy";
version = "0.12.2";
format = "setuptools";
version = "0.12.3";
pyproject = true;
disabled = pythonOlder "3.7";
@ -23,14 +24,18 @@ buildPythonPackage rec {
owner = "scottbonline";
repo = "sense";
rev = "refs/tags/${version}";
hash = "sha256-OVFRM31LwHNeJUx+s/TN/1o4wvjMQEKaZEPI+y+S64s=";
hash = "sha256-aAPDYg5ttOAkKF5c1ft2apIQoReh4t22+78PtmLZNlI=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "{{VERSION_PLACEHOLDER}}" "${version}"
--replace-fail "{{VERSION_PLACEHOLDER}}" "${version}"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
async-timeout