1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 jaraco-classes,
6 jaraco-context,
7 keyring,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools-scm,
11}:
12
13buildPythonPackage rec {
14 pname = "keyrings-alt";
15 version = "5.0.2";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "jaraco";
22 repo = "keyrings.alt";
23 tag = "v${version}";
24 hash = "sha256-m/hIXjri3FZ3rPIymiIBy8cKNOwJoj14WjsOyDtcWmU=";
25 };
26
27 build-system = [ setuptools-scm ];
28
29 dependencies = [
30 jaraco-classes
31 jaraco-context
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 keyring
37 ];
38
39 pythonImportsCheck = [ "keyrings.alt" ];
40
41 meta = with lib; {
42 description = "Alternate keyring implementations";
43 homepage = "https://github.com/jaraco/keyrings.alt";
44 changelog = "https://github.com/jaraco/keyrings.alt/blob/v${version}/NEWS.rst";
45 license = licenses.mit;
46 maintainers = with maintainers; [ nyarly ];
47 };
48}