nixpkgs/pkgs/development/python-modules/keyring/default.nix

44 lines
1,005 B
Nix
Raw Normal View History

{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pythonOlder
, dbus-python
, entrypoints
, importlib-metadata
, pytest
, pytest-flake8
, secretstorage
, setuptools_scm
2020-06-11 10:38:23 +00:00
, toml
}:
buildPythonPackage rec {
pname = "keyring";
version = "21.3.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "182f94fc0381546489e3e4d90384a8c1d43cc09ffe2eb4a826e7312df6e1be7c";
};
2020-06-11 10:38:23 +00:00
nativeBuildInputs = [
setuptools_scm
toml
];
2018-04-04 18:10:22 +00:00
checkInputs = [ pytest pytest-flake8 ];
propagatedBuildInputs = [ dbus-python entrypoints ]
++ lib.optional stdenv.isLinux secretstorage
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
# checks try to access a darwin path on linux
doCheck = false;
meta = with lib; {
description = "Store and access your passwords safely";
homepage = "https://pypi.python.org/pypi/keyring";
license = licenses.psfl;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}