Commit f131fbc5 authored by Robert Schütz's avatar Robert Schütz
Browse files

python311Packages.sense-energy: refactor

parent 7845fa08
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, aiohttp
, ciso8601
, async-timeout
@@ -15,7 +16,7 @@
buildPythonPackage rec {
  pname = "sense-energy";
  version = "0.12.3";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -28,9 +29,13 @@ buildPythonPackage rec {

  postPatch = ''
    substituteInPlace setup.py \
      --replace "{{VERSION_PLACEHOLDER}}" "${version}"
      --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}"
  '';

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    aiohttp
    async-timeout