2019-12-21 06:15:23 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pythonOlder
|
|
|
|
, dbus-python
|
|
|
|
, entrypoints
|
|
|
|
, importlib-metadata
|
|
|
|
, pytest
|
|
|
|
, pytest-flake8
|
|
|
|
, secretstorage
|
|
|
|
, setuptools_scm
|
2020-06-11 11:38:23 +01:00
|
|
|
, toml
|
2019-12-21 06:15:23 +00:00
|
|
|
}:
|
2017-09-07 09:54:07 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
2020-08-29 12:41:49 +01:00
|
|
|
version = "21.3.1";
|
2019-09-27 18:45:45 +01:00
|
|
|
disabled = isPy27;
|
2017-09-07 09:54:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-29 12:41:49 +01:00
|
|
|
sha256 = "182f94fc0381546489e3e4d90384a8c1d43cc09ffe2eb4a826e7312df6e1be7c";
|
2017-09-07 09:54:07 +01:00
|
|
|
};
|
|
|
|
|
2020-06-11 11:38:23 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
toml
|
|
|
|
];
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2018-04-04 19:10:22 +01:00
|
|
|
checkInputs = [ pytest pytest-flake8 ];
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2019-12-21 06:15:23 +00:00
|
|
|
propagatedBuildInputs = [ dbus-python entrypoints ]
|
|
|
|
++ lib.optional stdenv.isLinux secretstorage
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2019-09-11 06:59:20 +01:00
|
|
|
# checks try to access a darwin path on linux
|
|
|
|
doCheck = false;
|
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";
|
|
|
|
homepage = "https://pypi.python.org/pypi/keyring";
|
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|