1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/keyring/default.nix

40 lines
983 B
Nix
Raw Normal View History

{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pythonOlder
, dbus-python
, entrypoints
, importlib-metadata
, pytest
, pytest-flake8
, secretstorage
, setuptools_scm
}:
buildPythonPackage rec {
pname = "keyring";
2019-12-29 09:28:07 +00:00
version = "20.0.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2019-12-29 09:28:07 +00:00
sha256 = "963bfa7f090269d30bdc5e25589e5fd9dad2cf2a7c6f176a7f2386910e5d0d8d";
};
2018-04-04 19:10:22 +01:00
nativeBuildInputs = [ setuptools_scm ];
2018-04-04 19:10:22 +01: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;
};
}