2017-09-07 09:54:07 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, secretstorage
|
|
|
|
, fs, gdata, python_keyczar, pyasn1, pycrypto, six, setuptools_scm
|
|
|
|
, mock, pytest_28, pytestrunner }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "keyring";
|
2017-12-30 11:24:05 +00:00
|
|
|
version = "10.5.1";
|
2017-09-07 09:54:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 11:24:05 +00:00
|
|
|
sha256 = "f10674bb6ecbf82e2b713627c48ad0e84178e1c9d3dc1f0373261a0765402fb2";
|
2017-09-07 09:54:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fs gdata python_keyczar pyasn1 pycrypto six setuptools_scm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest_28 pytestrunner ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ secretstorage ];
|
|
|
|
|
2017-09-12 19:54:48 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2017-09-07 09:54:07 +01: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;
|
|
|
|
};
|
|
|
|
}
|