python312Packages.wsgi-intercept: refactor (#333241)

This commit is contained in:
Weijia Wang
2024-09-11 16:13:45 +02:00
committed by GitHub
@@ -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 ];
};
}