2021-04-22 12:41:50 +01: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
|
|
|
|
, 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 09:54:07 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
2022-06-08 20:40:28 +01:00
|
|
|
version = "23.6.0";
|
2022-01-02 10:17:34 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2022-05-23 05:31:16 +01:00
|
|
|
format = "pyproject";
|
|
|
|
|
2017-09-07 09:54:07 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-08 20:40:28 +01:00
|
|
|
hash = "sha256-OsAMJuTJNznhkQMJGpmGqfeWZaeM8VpN8dun6prI2i8=";
|
2017-09-07 09:54:07 +01:00
|
|
|
};
|
|
|
|
|
2020-06-11 11:38:23 +01:00
|
|
|
nativeBuildInputs = [
|
2021-03-10 12:51:41 +00:00
|
|
|
setuptools-scm
|
2020-06-11 11:38:23 +01:00
|
|
|
];
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2022-06-08 20:40:28 +01:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
|
|
|
importlib-metadata
|
2022-05-23 05:31:16 +01:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
2021-03-10 12:51:41 +00:00
|
|
|
jeepney
|
|
|
|
secretstorage
|
|
|
|
];
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2021-04-22 12:41:50 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"keyring"
|
|
|
|
"keyring.backend"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-25 05:56:39 +00:00
|
|
|
disabledTests = [
|
2021-08-27 11:45:18 +01:00
|
|
|
# E ValueError: too many values to unpack (expected 1)
|
|
|
|
"test_entry_point"
|
2021-04-22 12:41:50 +01:00
|
|
|
];
|
|
|
|
|
2021-04-23 00:27:26 +01:00
|
|
|
disabledTestPaths = [
|
2021-04-22 12:41:50 +01:00
|
|
|
"tests/backends/test_macOS.py"
|
|
|
|
];
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2019-12-21 06:15:23 +00:00
|
|
|
meta = with lib; {
|
2017-09-07 09:54:07 +01:00
|
|
|
description = "Store and access your passwords safely";
|
2021-03-10 12:51:41 +00:00
|
|
|
homepage = "https://github.com/jaraco/keyring";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovek323 dotlambda ];
|
2017-09-07 09:54:07 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|