3
0
Fork 0
forked from mirrors/nixpkgs
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.

63 lines
1.1 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
, jeepney
, secretstorage
2021-03-10 12:51:41 +00:00
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "keyring";
version = "23.6.0";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-OsAMJuTJNznhkQMJGpmGqfeWZaeM8VpN8dun6prI2i8=";
};
2020-06-11 11:38:23 +01:00
nativeBuildInputs = [
2021-03-10 12:51:41 +00:00
setuptools-scm
2020-06-11 11:38:23 +01:00
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
importlib-metadata
] ++ lib.optionals stdenv.isLinux [
2021-03-10 12:51:41 +00:00
jeepney
secretstorage
];
pythonImportsCheck = [
"keyring"
"keyring.backend"
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# E ValueError: too many values to unpack (expected 1)
"test_entry_point"
];
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";
license = licenses.mit;
maintainers = with maintainers; [ lovek323 dotlambda ];
platforms = platforms.unix;
};
}