Commit e186dcb1 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.envoy-reader: modernize

parent 0b010740
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildPythonPackage,
  envoy-utils,
  fetchFromGitHub,
  setuptools,
  httpx,
  pyjwt,
  pytest-asyncio,
@@ -16,7 +17,7 @@
buildPythonPackage rec {
  pname = "envoy-reader";
  version = "0.21.3";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -27,7 +28,9 @@ buildPythonPackage rec {
    hash = "sha256-aIpZ4ln4L57HwK8H0FqsyNnXosnAp3ingrJI6/MPS90=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    beautifulsoup4
    envoy-utils
    httpx
@@ -41,10 +44,11 @@ buildPythonPackage rec {
    respx
  ];

  pythonRelaxDeps = [ "pyjwt" ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "pytest-runner>=5.2" "" \
      --replace "pyjwt==2.1.0" "pyjwt>=2.1.0"
      --replace-fail "pytest-runner>=5.2" ""
  '';

  pythonImportsCheck = [ "envoy_reader" ];