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";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.5.0";
|
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;
|
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-CvPvyP7Vi2Ib+ikgUQt8JkVt5fxzapG590TgAehXqHE=";
|
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
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|