mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, importlib-metadata
|
|
, dbus-python
|
|
, jeepney
|
|
, secretstorage
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keyring";
|
|
version = "23.5.0";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-kBJQjhQagL0cC2d41cYQ3Z+MRk11rGd0JIUAUD+XL7k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
# this should be optional, however, it has a different API
|
|
importlib-metadata # see https://github.com/jaraco/keyring/issues/503#issuecomment-798973205
|
|
|
|
dbus-python
|
|
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";
|
|
homepage = "https://github.com/jaraco/keyring";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lovek323 dotlambda ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|