nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 63 lines 1.3 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, pythonOlder 6, setuptools-scm 7, importlib-metadata 8, dbus-python 9, jeepney 10, secretstorage 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "keyring"; 16 version = "23.5.1"; 17 disabled = pythonOlder "3.7"; 18 19 format = "pyproject"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-3uUCzfGKmCEb70KO6hFFajPABxiy8IUk/Vcnx/Qkv/0="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 31 # this should be optional, however, it has a different API 32 importlib-metadata # see https://github.com/jaraco/keyring/issues/503#issuecomment-798973205 33 ] ++ lib.optionals stdenv.isLinux [ 34 jeepney 35 secretstorage 36 ]; 37 38 pythonImportsCheck = [ 39 "keyring" 40 "keyring.backend" 41 ]; 42 43 checkInputs = [ 44 pytestCheckHook 45 ]; 46 47 disabledTests = [ 48 # E ValueError: too many values to unpack (expected 1) 49 "test_entry_point" 50 ]; 51 52 disabledTestPaths = [ 53 "tests/backends/test_macOS.py" 54 ]; 55 56 meta = with lib; { 57 description = "Store and access your passwords safely"; 58 homepage = "https://github.com/jaraco/keyring"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ lovek323 dotlambda ]; 61 platforms = platforms.unix; 62 }; 63}