2017-09-07 08:54:07 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-09-11 05:59:20 +00:00
|
|
|
, dbus-python, setuptools_scm, entrypoints, secretstorage
|
2018-04-04 18:10:22 +00:00
|
|
|
, pytest, pytest-flake8 }:
|
2017-09-07 08:54:07 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
2019-09-11 05:59:20 +00:00
|
|
|
version = "19.1.0";
|
2017-09-07 08:54:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-11 05:59:20 +00:00
|
|
|
sha256 = "13frfmws03jdyz9wxb4ylkvk80qiyb6a3h3sn7wx3ry97bn5li3a";
|
2017-09-07 08:54:07 +00:00
|
|
|
};
|
|
|
|
|
2018-04-04 18:10:22 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2017-09-07 08:54:07 +00:00
|
|
|
|
2018-04-04 18:10:22 +00:00
|
|
|
checkInputs = [ pytest pytest-flake8 ];
|
2017-09-07 08:54:07 +00:00
|
|
|
|
2019-09-11 05:59:20 +00:00
|
|
|
propagatedBuildInputs = [ dbus-python entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
|
2017-09-07 08:54:07 +00:00
|
|
|
|
2019-09-11 05:59:20 +00:00
|
|
|
# checks try to access a darwin path on linux
|
|
|
|
doCheck = false;
|
2017-09-07 08:54:07 +00: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;
|
|
|
|
};
|
|
|
|
}
|