Unverified Commit a67bb6eb authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python312Packages.wsgi-intercept: refactor (#333241)

parents 739692d1 db6ba9c2
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
{
  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 ];
  };
}