2017-09-07 08:54:07 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, secretstorage
|
|
|
|
, fs, gdata, python_keyczar, pyasn1, pycrypto, six, setuptools_scm
|
2018-01-20 11:53:27 +00:00
|
|
|
, mock, pytest, pytestrunner }:
|
2017-09-07 08:54:07 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "keyring";
|
2018-02-03 09:52:51 +00:00
|
|
|
version = "11.0.0";
|
2017-09-07 08:54:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-03 09:52:51 +00:00
|
|
|
sha256 = "b4607520a7c97be96be4ddc00f4b9dac65f47a45af4b4cd13ed5a8879641d646";
|
2017-09-07 08:54:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fs gdata python_keyczar pyasn1 pycrypto six setuptools_scm
|
|
|
|
];
|
|
|
|
|
2018-01-20 11:53:27 +00:00
|
|
|
checkInputs = [ mock pytest pytestrunner ];
|
2017-09-07 08:54:07 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ secretstorage ];
|
|
|
|
|
2017-09-12 18:54:48 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2017-09-07 08:54:07 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|