3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #113709 from SuperSandro2000/lazr-restfulclient

This commit is contained in:
Sandro 2021-02-20 04:18:17 +01:00 committed by GitHub
commit 16db442fbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 3 deletions

View file

@ -1,7 +1,6 @@
{ buildPythonPackage, lib, fetchPypi, isPy27
, aiohttp
, maxminddb
, mock
, mocket
, requests
, requests-mock

View file

@ -8,6 +8,10 @@
, setuptools
, six
, wadllib
, fixtures
, lazr-uri
, pytestCheckHook
, wsgi-intercept
}:
buildPythonPackage rec {
@ -23,7 +27,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [ distro httplib2 oauthlib setuptools six wadllib ];
doCheck = false; # requires to package lazr.restful, lazr.authentication, and wsgi_intercept
# E ModuleNotFoundError: No module named 'lazr.uri'
doCheck = false;
checkInputs = [ fixtures lazr-uri pytestCheckHook wsgi-intercept ];
pythonImportsCheck = [ "lazr.restfulclient" ];

View file

@ -6,7 +6,6 @@
, pyenchant
, pygeoip
, pytestCheckHook
, python
, pytz
, sqlalchemy
, xmltodict

View file

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchPypi, six, httplib2, py, pytestCheckHook, requests, urllib3 }:
buildPythonPackage rec {
pname = "wsgi-intercept";
version = "1.9.2";
src = fetchPypi {
pname = "wsgi_intercept";
inherit version;
sha256 = "1b6251d03jnhqywr54bzj9fnc3qzp2kvz22asxpd27jy984qx21n";
};
propagatedBuildInputs = [ six ];
checkInputs = [ httplib2 py pytestCheckHook requests urllib3 ];
disabledTests = [
"test_http_not_intercepted"
"test_https_not_intercepted"
"test_https_no_ssl_verification_not_intercepted"
];
pythonImportsCheck = [ "wsgi_intercept" ];
meta = with lib; {
description = "wsgi_intercept installs a WSGI application in place of a real URI for testing";
homepage = "https://github.com/cdent/wsgi-intercept";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -8378,6 +8378,8 @@ in {
ws4py = callPackage ../development/python-modules/ws4py { };
wsgi-intercept = callPackage ../development/python-modules/wsgi-intercept { };
wsgiproxy2 = callPackage ../development/python-modules/wsgiproxy2 { };
WSGIProxy = callPackage ../development/python-modules/wsgiproxy { };