nixpkgs/pkgs/development/python-modules/keyring/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
2021-03-10 12:51:41 +00:00
, setuptools-scm
, importlib-metadata
2021-03-10 12:51:41 +00:00
, dbus-python
, jaraco_classes
2021-03-10 12:51:41 +00:00
, jeepney
, secretstorage
2021-03-10 12:51:41 +00:00
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "keyring";
version = "23.13.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ui4VqbNeIZCNCq9OCkesxS1q4zRE3w2itJ1BpG721ng=";
};
2020-06-11 10:38:23 +00:00
nativeBuildInputs = [
2021-03-10 12:51:41 +00:00
setuptools-scm
2020-06-11 10:38:23 +00:00
];
propagatedBuildInputs = [
jaraco_classes
] ++ lib.optionals stdenv.isLinux [
2021-03-10 12:51:41 +00:00
jeepney
secretstorage
] ++ lib.optionals (pythonOlder "3.12") [
importlib-metadata
2021-03-10 12:51:41 +00:00
];
pythonImportsCheck = [
"keyring"
"keyring.backend"
];
checkInputs = [
pytestCheckHook
];
disabledTestPaths = [
"tests/backends/test_macOS.py"
];
meta = with lib; {
description = "Store and access your passwords safely";
2021-03-10 12:51:41 +00:00
homepage = "https://github.com/jaraco/keyring";
changelog = "https://github.com/jaraco/keyring/blob/v${version}/CHANGES.rst";
2021-03-10 12:51:41 +00:00
license = licenses.mit;
maintainers = with maintainers; [ lovek323 dotlambda ];
platforms = platforms.unix;
};
}