2017-09-07 09:54:07 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-04-04 19:10:22 +01:00
|
|
|
, setuptools_scm, entrypoints, secretstorage
|
|
|
|
, pytest, pytest-flake8 }:
|
2017-09-07 09:54:07 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyring";
|
2018-05-27 18:58:52 +01:00
|
|
|
version = "12.2.1";
|
2017-09-07 09:54:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-05-27 18:58:52 +01:00
|
|
|
sha256 = "1zhg2a59rqgigl8apm4s39md6yf3f2v1d4bl6s5rmiigwfifm624";
|
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
|
|
|
|
2018-04-04 19:10:22 +01:00
|
|
|
propagatedBuildInputs = [ entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
|
2017-09-07 09:54:07 +01:00
|
|
|
|
2018-05-02 13:12:11 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2017-09-12 19:54:48 +01:00
|
|
|
|
2017-09-07 09:54:07 +01:00
|
|
|
checkPhase = ''
|
2018-04-04 19:10:22 +01:00
|
|
|
py.test
|
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;
|
|
|
|
};
|
|
|
|
}
|