2021-06-07 08:58:31 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
2021-09-22 10:43:07 +02:00
|
|
|
, gssapi
|
|
|
|
, krb5
|
|
|
|
, ruamel-yaml
|
2021-06-07 08:58:31 +02:00
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyspnego";
|
2021-09-22 10:43:07 +02:00
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-07 08:58:31 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jborean93";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-22 10:43:07 +02:00
|
|
|
sha256 = "sha256-puv9aq53NbjSuN561XFou404N9pIxvvMjZMgnNx3SjM=";
|
2021-06-07 08:58:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
2021-09-22 10:43:07 +02:00
|
|
|
gssapi
|
|
|
|
krb5
|
|
|
|
ruamel-yaml
|
2021-06-07 08:58:31 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
glibcLocales
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-09-22 10:43:07 +02:00
|
|
|
disabledTests = [
|
|
|
|
# struct.error: unpack requires a buffer of 1 bytes
|
|
|
|
"test_credssp_invalid_client_authentication"
|
|
|
|
];
|
|
|
|
|
2021-06-07 08:58:31 +02:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spnego" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python SPNEGO authentication library";
|
|
|
|
homepage = "Python SPNEGO authentication library";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|