From 0b3d40242e75c370034e16804cdd17f3422588c9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 30 Dec 2023 09:59:42 +0100 Subject: [PATCH 1/3] python311Packages.notifications-python-client: 8.1.0 -> 8.2.0 Diff: https://github.com/alphagov/notifications-python-client/compare/refs/tags/8.1.0...8.2.0 Changelog: https://github.com/alphagov/notifications-python-client/blob/8.2.0/CHANGELOG.md --- .../python-modules/notifications-python-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/notifications-python-client/default.nix b/pkgs/development/python-modules/notifications-python-client/default.nix index 5ae579c8deb2..ec7e59a70e07 100644 --- a/pkgs/development/python-modules/notifications-python-client/default.nix +++ b/pkgs/development/python-modules/notifications-python-client/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "notifications-python-client"; - version = "8.1.0"; + version = "8.2.0"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "alphagov"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-pdBPjc2j0/PSk224r8un22pNQ9g1jMdhPn8XmoKp+ng="; + hash = "sha256-NGNGYvNlgJyxRfQEf6EIvA1+KfgT1xbpDTYBwLh3eQY="; }; propagatedBuildInputs = [ From 792bd7f814327c60b00a5f535af108cf0fd82433 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 8 Jan 2024 09:30:36 +0100 Subject: [PATCH 2/3] python311Packages.notifications-python-client: 8.2.0 -> 9.0.0 Diff: https://github.com/alphagov/notifications-python-client/compare/refs/tags/8.2.0...9.0.0 Changelog: https://github.com/alphagov/notifications-python-client/blob/9.0.0/CHANGELOG.md --- .../python-modules/notifications-python-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/notifications-python-client/default.nix b/pkgs/development/python-modules/notifications-python-client/default.nix index ec7e59a70e07..63f739489c3e 100644 --- a/pkgs/development/python-modules/notifications-python-client/default.nix +++ b/pkgs/development/python-modules/notifications-python-client/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "notifications-python-client"; - version = "8.2.0"; + version = "9.0.0"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "alphagov"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-NGNGYvNlgJyxRfQEf6EIvA1+KfgT1xbpDTYBwLh3eQY="; + hash = "sha256-HDxCVwagHFenx0S2TPxiMIyyq4ovxe0yNi76sX2CC9s="; }; propagatedBuildInputs = [ From e453e77515fb981316600398fa0ec9ebd734fccb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 8 Jan 2024 09:33:15 +0100 Subject: [PATCH 3/3] python311Packages.notifications-python-client: refactor --- .../notifications-python-client/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/notifications-python-client/default.nix b/pkgs/development/python-modules/notifications-python-client/default.nix index 63f739489c3e..353c5fc3d42e 100644 --- a/pkgs/development/python-modules/notifications-python-client/default.nix +++ b/pkgs/development/python-modules/notifications-python-client/default.nix @@ -10,6 +10,7 @@ , pythonOlder , requests , requests-mock +, setuptools }: buildPythonPackage rec { @@ -21,11 +22,20 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "alphagov"; - repo = pname; + repo = "notifications-python-client"; rev = "refs/tags/${version}"; 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" ];