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

34 lines
836 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
2018-04-04 20:10:22 +02:00
, setuptools_scm, entrypoints, secretstorage
, pytest, pytest-flake8 }:
buildPythonPackage rec {
pname = "keyring";
2018-07-22 12:12:11 +02:00
version = "13.2.1";
src = fetchPypi {
inherit pname version;
2018-07-22 12:12:11 +02:00
sha256 = "6364bb8c233f28538df4928576f4e051229e0451651073ab20b315488da16a58";
};
2018-04-04 20:10:22 +02:00
nativeBuildInputs = [ setuptools_scm ];
2018-04-04 20:10:22 +02:00
checkInputs = [ pytest pytest-flake8 ];
2018-04-04 20:10:22 +02:00
propagatedBuildInputs = [ entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
doCheck = !stdenv.isDarwin;
checkPhase = ''
2018-04-04 20:10:22 +02: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;
};
}