2019-09-27 18:45:45 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
2019-09-11 06:59:20 +01:00
|
|
|
, dbus-python, setuptools_scm, entrypoints, secretstorage
|
2018-04-04 19:10:22 +01:00
|
|
|
, pytest, pytest-flake8 }:
|
2017-09-07 09:54:07 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
2019-12-19 19:31:14 +00:00
|
|
|
version = "20.0.0";
|
2019-09-27 18:45:45 +01:00
|
|
|
disabled = isPy27;
|
2017-09-07 09:54:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:14 +00:00
|
|
|
sha256 = "fc9cadedae35b77141f670f84c10a657147d2e526348698c93dd77f039979729";
|
2017-09-07 09:54:07 +01:00
|
|
|
};
|
|
|
|
|
2018-04-04 19:10:22 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
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-09-11 06:59:20 +01:00
|
|
|
propagatedBuildInputs = [ dbus-python entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
|
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
|
|
|
|
|
|
|
meta = with stdenv.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;
|
|
|
|
};
|
|
|
|
}
|