46 lines
969 B
Nix
Raw Normal View History

2021-03-10 13:51:41 +01:00
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder
, setuptools-scm
, importlib-metadata
2021-03-10 13:51:41 +01:00
, dbus-python
, jeepney
, secretstorage
2021-03-10 13:51:41 +01:00
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "keyring";
2021-03-10 13:51:41 +01:00
version = "23.0.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
2021-03-10 13:51:41 +01:00
sha256 = "045703609dd3fccfcdb27da201684278823b72af515aedec1a8515719a038cb8";
};
2020-06-11 12:38:23 +02:00
nativeBuildInputs = [
2021-03-10 13:51:41 +01:00
setuptools-scm
2020-06-11 12:38:23 +02:00
];
2021-03-10 13:51:41 +01:00
checkInputs = [
pytestCheckHook
];
2021-03-10 13:51:41 +01:00
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
] ++ lib.optionals stdenv.isLinux [
dbus-python
jeepney
secretstorage
];
2021-03-10 13:51:41 +01:00
pythonImportsCheck = [ "keyring" ];
meta = with lib; {
description = "Store and access your passwords safely";
2021-03-10 13:51:41 +01:00
homepage = "https://github.com/jaraco/keyring";
license = licenses.mit;
maintainers = with maintainers; [ lovek323 dotlambda ];
platforms = platforms.unix;
};
}