Commit 9adf4923 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent a7b23532
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -9,13 +9,14 @@
  pytest-freezer,
  pytestCheckHook,
  pythonOlder,
  syrupy,
  yarl,
}:

buildPythonPackage rec {
  pname = "energyzero";
  version = "2.1.0";
  format = "pyproject";
  version = "2.1.1";
  pyproject = true;

  disabled = pythonOlder "3.11";

@@ -23,16 +24,16 @@ buildPythonPackage rec {
    owner = "klaasnicolaas";
    repo = "python-energyzero";
    rev = "refs/tags/v${version}";
    hash = "sha256-NZbCiLCZC+hTcV0twOeCoKKD3eZ0/ZzPTnVpFyMLSfw=";
    hash = "sha256-KOeYdTruD8AN/NkLEKKJDUB/JkOoQwfAMZkp/RvvUQE=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace '"0.0.0"' '"${version}"' \
      --replace 'addopts = "--cov"' ""
      --replace-fail '"0.0.0"' '"${version}"' \
      --replace-fail 'addopts = "--cov"' ""
  '';

  nativeBuildInputs = [ poetry-core ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
    aiohttp
@@ -44,6 +45,7 @@ buildPythonPackage rec {
    pytest-asyncio
    pytest-freezer
    pytestCheckHook
    syrupy
  ];

  pythonImportsCheck = [ "energyzero" ];