3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/keyring/default.nix

34 lines
836 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
2018-04-04 19:10:22 +01:00
, setuptools_scm, entrypoints, secretstorage
, pytest, pytest-flake8 }:
buildPythonPackage rec {
pname = "keyring";
2019-02-14 07:37:19 +00:00
version = "18.0.0";
src = fetchPypi {
inherit pname version;
2019-02-14 07:37:19 +00:00
sha256 = "12833d2b05d2055e0e25931184af9cd6a738f320a2264853cabbd8a3a0f0b65d";
};
2018-04-04 19:10:22 +01:00
nativeBuildInputs = [ setuptools_scm ];
2018-04-04 19:10:22 +01:00
checkInputs = [ pytest pytest-flake8 ];
2018-04-04 19:10:22 +01:00
propagatedBuildInputs = [ entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
doCheck = !stdenv.isDarwin;
checkPhase = ''
2018-04-04 19:10:22 +01:00
py.test
'';
meta = with stdenv.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;
};
}