nixpkgs/pkgs/development/python-modules/keyring/default.nix
2018-12-03 16:50:31 +01:00

34 lines
836 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, setuptools_scm, entrypoints, secretstorage
, pytest, pytest-flake8 }:
buildPythonPackage rec {
pname = "keyring";
version = "16.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "8a9b0c2c2abc3e7326559f840e1f05e6d010ccaf397d09f450485920ba08e443";
};
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [ pytest pytest-flake8 ];
propagatedBuildInputs = [ entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
doCheck = !stdenv.isDarwin;
checkPhase = ''
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;
};
}