2020-04-24 23:36:52 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pythonOlder
|
|
|
|
, dbus-python
|
|
|
|
, entrypoints
|
|
|
|
, importlib-metadata
|
|
|
|
, pytest
|
|
|
|
, pytest-flake8
|
|
|
|
, secretstorage
|
|
|
|
, setuptools_scm
|
2020-06-15 15:56:04 +00:00
|
|
|
, toml
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "21.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "c53e0e5ccde3ad34284a40ce7976b5b3a3d6de70344c3f8ee44364cc340976ec";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
toml
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytest pytest-flake8 ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ dbus-python entrypoints ]
|
|
|
|
++ lib.optional stdenv.isLinux secretstorage
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
|
|
|
|
|
|
|
# checks try to access a darwin path on linux
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Store and access your passwords safely";
|
|
|
|
homepage = "https://pypi.python.org/pypi/keyring";
|
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|