python3Packages.requests-kerberos: fix build and tests
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
, cryptography
|
||||
, requests
|
||||
, pykerberos
|
||||
, pyspnego
|
||||
, pytestCheckHook
|
||||
, pytest-mock
|
||||
, mock
|
||||
}:
|
||||
|
||||
@@ -20,20 +22,25 @@ buildPythonPackage rec {
|
||||
sha256 = "0yvfg2cj3d10l8fd8kyal4hmpd7fd1c3bca13cj9ril5l573in76";
|
||||
};
|
||||
|
||||
# avoid needing to package krb5
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyspnego[kerberos]" "pyspnego"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
requests
|
||||
pykerberos
|
||||
pyspnego
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
# they have a setup.py which mentions a test suite that doesn't exist...
|
||||
patches = [ ./fix_setup.patch ];
|
||||
|
||||
pythonImportsCheck = [ "requests_kerberos" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
--- ./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'],
|
||||
)
|
||||
Reference in New Issue
Block a user