33 lines
836 B
Nix
33 lines
836 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, setuptools_scm, entrypoints, secretstorage
|
|
, pytest, pytest-flake8 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keyring";
|
|
version = "18.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "12833d2b05d2055e0e25931184af9cd6a738f320a2264853cabbd8a3a0f0b65d";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
checkInputs = [ pytest pytest-flake8 ];
|
|
|
|
propagatedBuildInputs = [ entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|