From db6ba9c29cb2bfc6778d1bd3408c79248b5f0cc7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 8 Aug 2024 15:00:44 +0000 Subject: [PATCH] python312Packages.wsgi-intercept: refactor --- .../python-modules/wsgi-intercept/default.nix | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/wsgi-intercept/default.nix b/pkgs/development/python-modules/wsgi-intercept/default.nix index 3a1e587fc106..e99c8a6d0f46 100644 --- a/pkgs/development/python-modules/wsgi-intercept/default.nix +++ b/pkgs/development/python-modules/wsgi-intercept/default.nix @@ -1,10 +1,9 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, six, httplib2, - py, pytestCheckHook, pythonOlder, requests, @@ -19,10 +18,11 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = fetchPypi { - pname = "wsgi_intercept"; - inherit version; - hash = "sha256-eb1sY5qxH36r5dGK2aIPYu6CocQ1EkqHbP/YA49sJME="; + src = fetchFromGitHub { + owner = "cdent"; + repo = "wsgi-intercept"; + rev = "refs/tags/v${version}"; + hash = "sha256-hs5yB0+eDlh/pNPaqYIU9C+RBpyrdPOAscQGIoqzmvU="; }; build-system = [ setuptools ]; @@ -30,9 +30,8 @@ buildPythonPackage rec { dependencies = [ six ]; nativeCheckInputs = [ - httplib2 - py pytestCheckHook + httplib2 requests urllib3 ]; @@ -48,11 +47,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "wsgi_intercept" ]; - meta = with lib; { + meta = { description = "Module that acts as a WSGI application in place of a real URI for testing"; homepage = "https://github.com/cdent/wsgi-intercept"; changelog = "https://github.com/cdent/wsgi-intercept/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ mikecm ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ mikecm ]; }; }