1{ stdenv, fetchFromGitHub, buildPythonPackage, requests, pykerberos, mock }: 2 3buildPythonPackage rec { 4 pname = "requests-kerberos"; 5 version = "0.12.0"; 6 7 # tests are not present in the PyPI version 8 src = fetchFromGitHub { 9 owner = "requests"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "1qw96aw84nljh9cip372mfv50p1yyirfgigavvavgpc3c5g278s6"; 13 }; 14 15 checkInputs = [ mock ]; 16 propagatedBuildInputs = [ requests pykerberos ]; 17 18 # they have a setup.py which mentions a test suite that doesn't exist... 19 patches = [ ./fix_setup.patch ]; 20 21 meta = with stdenv.lib; { 22 description = "An authentication handler for using Kerberos with Python Requests."; 23 homepage = "https://github.com/requests/requests-kerberos"; 24 license = licenses.isc; 25 maintainers = with maintainers; [ catern ]; 26 }; 27}