Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / keyring / default.nix
blob3e26079f12356e8db8afa85656f632e42ab1034a
1 { lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pythonOlder
2 , dbus-python
3 , entrypoints
4 , importlib-metadata
5 , pytest
6 , pytest-flake8
7 , secretstorage
8 , setuptools_scm
9 , toml
12 buildPythonPackage rec {
13   pname = "keyring";
14   version = "21.5.0";
15   disabled = isPy27;
17   src = fetchPypi {
18     inherit pname version;
19     sha256 = "207bd66f2a9881c835dad653da04e196c678bf104f8252141d2d3c4f31051579";
20   };
22   nativeBuildInputs = [
23     setuptools_scm
24     toml
25   ];
27   checkInputs = [ pytest pytest-flake8 ];
29   propagatedBuildInputs = [ dbus-python entrypoints ]
30   ++ lib.optional stdenv.isLinux secretstorage
31   ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
33   # checks try to access a darwin path on linux
34   doCheck = false;
36   meta = with lib; {
37     description = "Store and access your passwords safely";
38     homepage    = "https://pypi.python.org/pypi/keyring";
39     license     = licenses.psfl;
40     maintainers = with maintainers; [ lovek323 ];
41     platforms   = platforms.unix;
42   };