Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, installShellFiles, setuptools-scm, shtab, importlib-metadata, dbus-python, jaraco-classes, jeepney, secretstorage, pytestCheckHook}:
buildPythonPackage rec { pname = "keyring"; version = "24.3.0"; pyproject = true; disabled = pythonOlder "3.8";
src = fetchPypi { inherit pname version; hash = "sha256-5zDs/9MJZYoI7oJTWjtexLTIZpqb4R77ZiSdjgrrmiU="; };
nativeBuildInputs = [ installShellFiles setuptools-scm shtab ];
propagatedBuildInputs = [ jaraco-classes ] ++ lib.optionals stdenv.isLinux [ jeepney secretstorage ] ++ lib.optionals (pythonOlder "3.12") [ importlib-metadata ];
postInstall = '' installShellCompletion --cmd keyring \ --bash <($out/bin/keyring --print-completion bash) \ --zsh <($out/bin/keyring --print-completion zsh) '';
pythonImportsCheck = [ "keyring" "keyring.backend" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ "tests/backends/test_macOS.py" ] # These tests fail when sandboxing is enabled because they are unable to get a password from keychain. ++ lib.optional stdenv.isDarwin "tests/test_multiprocess.py";
meta = with lib; { description = "Store and access your passwords safely"; homepage = "https://github.com/jaraco/keyring"; changelog = "https://github.com/jaraco/keyring/blob/v${version}/NEWS.rst"; license = licenses.mit; mainProgram = "keyring"; maintainers = with maintainers; [ lovek323 dotlambda ]; platforms = platforms.unix; };}