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