Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 836 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, setuptools_scm, entrypoints, secretstorage 3, pytest, pytest-flake8 }: 4 5buildPythonPackage rec { 6 pname = "keyring"; 7 version = "18.0.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "12833d2b05d2055e0e25931184af9cd6a738f320a2264853cabbd8a3a0f0b65d"; 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}