Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyspnego / default.nix
blob9107961653401b6bc0279843c2de68a6f93d701e
1 { lib
2 , buildPythonPackage
3 , cryptography
4 , fetchFromGitHub
5 , gssapi
6 , krb5
7 , ruamel-yaml
8 , pytest-mock
9 , pytestCheckHook
10 , pythonOlder
11 , glibcLocales
14 buildPythonPackage rec {
15   pname = "pyspnego";
16   version = "0.9.2";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "jborean93";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-A0vVpEI8TKelZ96dIqSc01SX1gU3pDUVSOV6jap2WtU=";
25   };
27   propagatedBuildInputs = [
28     cryptography
29     gssapi
30     krb5
31     ruamel-yaml
32   ];
34   nativeCheckInputs = [
35     glibcLocales
36     pytest-mock
37     pytestCheckHook
38   ];
40   disabledTests = [
41     # struct.error: unpack requires a buffer of 1 bytes
42     "test_credssp_invalid_client_authentication"
43   ];
45   LC_ALL = "en_US.UTF-8";
47   pythonImportsCheck = [ "spnego" ];
49   meta = with lib; {
50     description = "Python SPNEGO authentication library";
51     homepage = "https://github.com/jborean93/pyspnego";
52     license = with licenses; [ mit ];
53     maintainers = with maintainers; [ fab ];
54   };