2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
2021-09-22 15:38:15 +00:00
|
|
|
, gssapi
|
|
|
|
, krb5
|
|
|
|
, ruamel-yaml
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyspnego";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.9.2";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jborean93";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-A0vVpEI8TKelZ96dIqSc01SX1gU3pDUVSOV6jap2WtU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
2021-09-22 15:38:15 +00:00
|
|
|
gssapi
|
|
|
|
krb5
|
|
|
|
ruamel-yaml
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
glibcLocales
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
# struct.error: unpack requires a buffer of 1 bytes
|
|
|
|
"test_credssp_invalid_client_authentication"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spnego" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python SPNEGO authentication library";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/jborean93/pyspnego";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|