1{ lib 2, buildPythonPackage 3, cryptography 4, fetchFromGitHub 5, gssapi 6, krb5 7, ruamel-yaml 8, pytest-mock 9, pytestCheckHook 10, pythonOlder 11, glibcLocales 12}: 13 14buildPythonPackage rec { 15 pname = "pyspnego"; 16 version = "0.9.2"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "jborean93"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-A0vVpEI8TKelZ96dIqSc01SX1gU3pDUVSOV6jap2WtU="; 25 }; 26 27 propagatedBuildInputs = [ 28 cryptography 29 gssapi 30 krb5 31 ruamel-yaml 32 ]; 33 34 nativeCheckInputs = [ 35 glibcLocales 36 pytest-mock 37 pytestCheckHook 38 ]; 39 40 disabledTests = [ 41 # struct.error: unpack requires a buffer of 1 bytes 42 "test_credssp_invalid_client_authentication" 43 ]; 44 45 LC_ALL = "en_US.UTF-8"; 46 47 pythonImportsCheck = [ "spnego" ]; 48 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 }; 55}