Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pythonOlder 2, dbus-python 3, entrypoints 4, importlib-metadata 5, pytest 6, pytest-flake8 7, secretstorage 8, setuptools_scm 9, toml 10}: 11 12buildPythonPackage rec { 13 pname = "keyring"; 14 version = "21.3.1"; 15 disabled = isPy27; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "182f94fc0381546489e3e4d90384a8c1d43cc09ffe2eb4a826e7312df6e1be7c"; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools_scm 24 toml 25 ]; 26 27 checkInputs = [ pytest pytest-flake8 ]; 28 29 propagatedBuildInputs = [ dbus-python entrypoints ] 30 ++ lib.optional stdenv.isLinux secretstorage 31 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; 32 33 # checks try to access a darwin path on linux 34 doCheck = false; 35 36 meta = with lib; { 37 description = "Store and access your passwords safely"; 38 homepage = "https://pypi.python.org/pypi/keyring"; 39 license = licenses.psfl; 40 maintainers = with maintainers; [ lovek323 ]; 41 platforms = platforms.unix; 42 }; 43}