2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi
|
2021-06-04 09:07:49 +00:00
|
|
|
, dbus-python, setuptools-scm, entrypoints, secretstorage
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest, pytest-flake8 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
|
|
|
version = "18.0.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0f58jq58jhfzlhix7x2zz7c4ycdvcs1z3sgs4lkr4xxx680wrmk7";
|
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytest pytest-flake8 ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [ dbus-python entrypoints ] ++ lib.optional stdenv.isLinux secretstorage;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Store and access your passwords safely";
|
|
|
|
homepage = "https://pypi.python.org/pypi/keyring";
|
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ lovek323 orivej ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|