Unverified Commit 4f301350 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

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

python311Packages.sense-energy: 0.12.2 -> 0.12.3
parents 8f2659f1 f131fbc5
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
{ 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