2021-04-22 11:41:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2021-03-10 12:51:41 +00:00
|
|
|
, setuptools-scm
|
2019-12-21 06:15:23 +00:00
|
|
|
, importlib-metadata
|
2021-03-10 12:51:41 +00:00
|
|
|
, dbus-python
|
2022-09-14 21:36:11 +00:00
|
|
|
, jaraco_classes
|
2021-03-10 12:51:41 +00:00
|
|
|
, jeepney
|
2019-12-21 06:15:23 +00:00
|
|
|
, secretstorage
|
2021-03-10 12:51:41 +00:00
|
|
|
, pytestCheckHook
|
2019-12-21 06:15:23 +00:00
|
|
|
}:
|
2017-09-07 08:54:07 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
2022-12-19 18:35:15 +00:00
|
|
|
version = "23.13.1";
|
2022-05-23 04:31:16 +00:00
|
|
|
format = "pyproject";
|
2022-09-14 21:36:11 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-05-23 04:31:16 +00:00
|
|
|
|
2017-09-07 08:54:07 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-19 18:35:15 +00:00
|
|
|
hash = "sha256-ui4VqbNeIZCNCq9OCkesxS1q4zRE3w2itJ1BpG721ng=";
|
2017-09-07 08:54:07 +00:00
|
|
|
};
|
|
|
|
|
2020-06-11 10:38:23 +00:00
|
|
|
nativeBuildInputs = [
|
2021-03-10 12:51:41 +00:00
|
|
|
setuptools-scm
|
2020-06-11 10:38:23 +00:00
|
|
|
];
|
2017-09-07 08:54:07 +00:00
|
|
|
|
2022-09-23 00:58:49 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-09-14 21:36:11 +00:00
|
|
|
jaraco_classes
|
2022-09-23 00:58:49 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
2021-03-10 12:51:41 +00:00
|
|
|
jeepney
|
|
|
|
secretstorage
|
2022-11-10 19:51:06 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.12") [
|
2022-09-23 00:58:49 +00:00
|
|
|
importlib-metadata
|
2021-03-10 12:51:41 +00:00
|
|
|
];
|
2017-09-07 08:54:07 +00:00
|
|
|
|
2021-04-22 11:41:50 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"keyring"
|
|
|
|
"keyring.backend"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-04-22 23:27:26 +00:00
|
|
|
disabledTestPaths = [
|
2021-04-22 11:41:50 +00:00
|
|
|
"tests/backends/test_macOS.py"
|
|
|
|
];
|
2017-09-07 08:54:07 +00:00
|
|
|
|
2019-12-21 06:15:23 +00:00
|
|
|
meta = with lib; {
|
2017-09-07 08:54:07 +00:00
|
|
|
description = "Store and access your passwords safely";
|
2021-03-10 12:51:41 +00:00
|
|
|
homepage = "https://github.com/jaraco/keyring";
|
2022-11-10 19:51:06 +00:00
|
|
|
changelog = "https://github.com/jaraco/keyring/blob/v${version}/CHANGES.rst";
|
2021-03-10 12:51:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovek323 dotlambda ];
|
2017-09-07 08:54:07 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|