61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
cryptography,
|
||
|
fetchFromGitHub,
|
||
|
gssapi,
|
||
|
krb5,
|
||
|
ruamel-yaml,
|
||
|
pytest-mock,
|
||
|
pytestCheckHook,
|
||
|
pythonOlder,
|
||
|
setuptools,
|
||
|
glibcLocales,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "pyspnego";
|
||
|
version = "0.11.1";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "jborean93";
|
||
|
repo = pname;
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-8u4gAIM2HZiDooUoIM0zAUq6IJkJHMzr16p42v6ekBQ=";
|
||
|
};
|
||
|
|
||
|
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 = with lib; {
|
||
|
changelog = "https://github.com/jborean93/pyspnego/blob/v${version}/CHANGELOG.md";
|
||
|
description = "Python SPNEGO authentication library";
|
||
|
mainProgram = "pyspnego-parse";
|
||
|
homepage = "https://github.com/jborean93/pyspnego";
|
||
|
license = with licenses; [ mit ];
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|