Commit 8d634557 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.eiswarnung: modernize

parent 9007b0b8
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  fetchFromGitHub,
  poetry-core,
  pytest-asyncio,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  pytz,
@@ -15,7 +16,7 @@
buildPythonPackage rec {
  pname = "eiswarnung";
  version = "2.0.0";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.11";

@@ -30,14 +31,14 @@ buildPythonPackage rec {

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace '"0.0.0"' '"${version}"' \
      --replace 'addopts = "--cov"' "" \
      --replace 'pytz = ">=2022.7.1,<2024.0.0"' 'pytz = "*"'
      --replace-fail '"0.0.0"' '"${version}"'
  '';

  nativeBuildInputs = [ poetry-core ];
  pythonRelaxDeps = [ "pytz" ];

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

  dependencies = [
    aiohttp
    pytz
    yarl
@@ -46,6 +47,7 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    aresponses
    pytest-asyncio
    pytest-cov-stub
    pytestCheckHook
  ];