pythonPackages.requests-kerberos: init at 0.12.0

This commit is contained in:
Spencer Baugh 2018-06-12 16:23:35 +00:00
parent aa86f70d18
commit 08db286889
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, buildPythonPackage, requests, pykerberos, mock }:
buildPythonPackage rec {
pname = "requests-kerberos";
version = "0.12.0";
# tests are not present in the PyPI version
src = fetchFromGitHub {
owner = "requests";
repo = pname;
rev = "v${version}";
sha256 = "1qw96aw84nljh9cip372mfv50p1yyirfgigavvavgpc3c5g278s6";
};
checkInputs = [ mock ];
propagatedBuildInputs = [ requests pykerberos ];
# they have a setup.py which mentions a test suite that doesn't exist...
patches = [ ./fix_setup.patch ];
meta = with stdenv.lib; {
description = "An authentication handler for using Kerberos with Python Requests.";
homepage = "https://github.com/requests/requests-kerberos";
license = licenses.isc;
maintainers = with maintainers; [ catern ];
};
}

View file

@ -0,0 +1,9 @@
--- ./setup.py 1980-01-02 00:00:00.000000000 +0000
+++ ./setup.py 1980-01-02 00:00:00.000000000 +0000
@@ -56,6 +56,5 @@
':sys_platform=="win32"': ['winkerberos>=0.5.0'],
':sys_platform!="win32"': ['pykerberos>=1.1.8,<2.0.0'],
},
- test_suite='test_requests_kerberos',
tests_require=['mock'],
)

View file

@ -2102,6 +2102,8 @@ in {
requests-cache = callPackage ../development/python-modules/requests-cache { }; requests-cache = callPackage ../development/python-modules/requests-cache { };
requests-kerberos = callPackage ../development/python-modules/requests-kerberos { };
requests-unixsocket = callPackage ../development/python-modules/requests-unixsocket {}; requests-unixsocket = callPackage ../development/python-modules/requests-unixsocket {};
howdoi = callPackage ../development/python-modules/howdoi {}; howdoi = callPackage ../development/python-modules/howdoi {};