1{ stdenv, buildPythonPackage, fetchPypi 2, setuptools_scm, entrypoints, secretstorage 3, pytest, pytest-flake8 }: 4 5buildPythonPackage rec { 6 pname = "keyring"; 7 version = "13.2.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "6364bb8c233f28538df4928576f4e051229e0451651073ab20b315488da16a58"; 12 }; 13 14 nativeBuildInputs = [ setuptools_scm ]; 15 16 checkInputs = [ pytest pytest-flake8 ]; 17 18 propagatedBuildInputs = [ entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage; 19 20 doCheck = !stdenv.isDarwin; 21 22 checkPhase = '' 23 py.test 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Store and access your passwords safely"; 28 homepage = "https://pypi.python.org/pypi/keyring"; 29 license = licenses.psfl; 30 maintainers = with maintainers; [ lovek323 ]; 31 platforms = platforms.unix; 32 }; 33}