blob: ee9fb61ce9f1c34db176720e74a319068269d04b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
gssapi,
krb5,
ruamel-yaml,
pytest-mock,
pytestCheckHook,
setuptools,
glibcLocales,
}:
buildPythonPackage rec {
pname = "pyspnego";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jborean93";
repo = "pyspnego";
tag = "v${version}";
hash = "sha256-dkss+8Z0dS4MTunBZWEH+WK1+kGikCHf7VPCR1reMS0=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ cryptography ];
optional-dependencies = {
kerberos = [
gssapi
krb5
];
yaml = [ ruamel-yaml ];
};
pythonImportsCheck = [ "spnego" ];
nativeCheckInputs = [
glibcLocales
pytest-mock
pytestCheckHook
];
env.LC_ALL = "en_US.UTF-8";
meta = {
changelog = "https://github.com/jborean93/pyspnego/blob/${src.tag}/CHANGELOG.md";
description = "Python SPNEGO authentication library";
mainProgram = "pyspnego-parse";
homepage = "https://github.com/jborean93/pyspnego";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|