Unverified Commit 2f802cd7 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #279557 from fabaff/notifications-python-client-bump

python311Packages.notifications-python-client: 8.1.0 -> 9.0.0 
parents a7a4f5fb e453e775
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -10,22 +10,32 @@
, pythonOlder
, requests
, requests-mock
, setuptools
}:

buildPythonPackage rec {
  pname = "notifications-python-client";
  version = "8.1.0";
  version = "9.0.0";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "alphagov";
    repo = pname;
    repo = "notifications-python-client";
    rev = "refs/tags/${version}";
    hash = "sha256-pdBPjc2j0/PSk224r8un22pNQ9g1jMdhPn8XmoKp+ng=";
    hash = "sha256-HDxCVwagHFenx0S2TPxiMIyyq4ovxe0yNi76sX2CC9s=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "pytest-runner" ""
  '';

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    docopt
    pyjwt
@@ -40,11 +50,6 @@ buildPythonPackage rec {
    requests-mock
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "pytest-runner" ""
  '';

  pythonImportsCheck = [
    "notifications_python_client"
  ];