python3Packages.keyring: always use importlib-metadata
This commit is contained in:
parent
e24256f4c9
commit
3c0a20777f
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, fetchpatch
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, dbus-python
|
, dbus-python
|
||||||
|
@ -25,15 +25,16 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
propagatedBuildInputs = [
|
||||||
importlib-metadata
|
# this should be optional, however, it has a different API
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
importlib-metadata # see https://github.com/jaraco/keyring/issues/503#issuecomment-798973205
|
||||||
|
|
||||||
dbus-python
|
dbus-python
|
||||||
jeepney
|
jeepney
|
||||||
secretstorage
|
secretstorage
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "keyring" ];
|
pythonImportsCheck = [ "keyring" "keyring.backend" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Store and access your passwords safely";
|
description = "Store and access your passwords safely";
|
||||||
|
|
Loading…
Reference in New Issue