1{ lib, stdenv, buildPythonPackage, fetchPypi 2, dbus-python, setuptools-scm, entrypoints, secretstorage 3, pytest, pytest-flake8 }: 4 5buildPythonPackage rec { 6 pname = "keyring"; 7 version = "18.0.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "0f58jq58jhfzlhix7x2zz7c4ycdvcs1z3sgs4lkr4xxx680wrmk7"; 12 }; 13 14 nativeBuildInputs = [ setuptools-scm ]; 15 16 checkInputs = [ pytest pytest-flake8 ]; 17 18 propagatedBuildInputs = [ dbus-python entrypoints ] ++ lib.optional stdenv.isLinux secretstorage; 19 20 doCheck = !stdenv.isDarwin; 21 22 checkPhase = '' 23 py.test 24 ''; 25 26 meta = with 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 orivej ]; 31 platforms = platforms.unix; 32 }; 33}