46 lines
969 B
Nix
46 lines
969 B
Nix
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
|
, setuptools-scm
|
|
, importlib-metadata
|
|
, dbus-python
|
|
, jeepney
|
|
, secretstorage
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keyring";
|
|
version = "23.0.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "045703609dd3fccfcdb27da201684278823b72af515aedec1a8515719a038cb8";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
importlib-metadata
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
dbus-python
|
|
jeepney
|
|
secretstorage
|
|
];
|
|
|
|
pythonImportsCheck = [ "keyring" ];
|
|
|
|
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;
|
|
};
|
|
}
|