49 lines
968 B
Nix
49 lines
968 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
jaraco-classes,
|
||
|
jaraco-context,
|
||
|
keyring,
|
||
|
pytestCheckHook,
|
||
|
pythonOlder,
|
||
|
setuptools-scm,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "keyrings-alt";
|
||
|
version = "5.0.2";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.8";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "jaraco";
|
||
|
repo = "keyrings.alt";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-m/hIXjri3FZ3rPIymiIBy8cKNOwJoj14WjsOyDtcWmU=";
|
||
|
};
|
||
|
|
||
|
build-system = [ setuptools-scm ];
|
||
|
|
||
|
dependencies = [
|
||
|
jaraco-classes
|
||
|
jaraco-context
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytestCheckHook
|
||
|
keyring
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "keyrings.alt" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Alternate keyring implementations";
|
||
|
homepage = "https://github.com/jaraco/keyrings.alt";
|
||
|
changelog = "https://github.com/jaraco/keyrings.alt/blob/v${version}/NEWS.rst";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ nyarly ];
|
||
|
};
|
||
|
}
|