mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00

checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, gssapi
|
|
, krb5
|
|
, ruamel-yaml
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, glibcLocales
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyspnego";
|
|
version = "0.7.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jborean93";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-FtXHbPilQKqo/pmFAYRCoSHkq2fIhP9DYi8kNNBz7uM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
gssapi
|
|
krb5
|
|
ruamel-yaml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
glibcLocales
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# struct.error: unpack requires a buffer of 1 bytes
|
|
"test_credssp_invalid_client_authentication"
|
|
];
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
pythonImportsCheck = [ "spnego" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python SPNEGO authentication library";
|
|
homepage = "https://github.com/jborean93/pyspnego";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|