diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2020-11-04 16:04:13 +0200 |
---|---|---|
committer | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2020-11-06 13:10:50 +0200 |
commit | efa1a8b5c43a8d8e9602480d5da313f2cd67573a (patch) | |
tree | 38cb1f1ac6ba5736a19395d7a8efa1d2ebb0430e /pkgs/applications/misc/pass-secret-service/default.nix | |
parent | 65d60c1259c240eb976c2d0507095f0ca0c72e8a (diff) | |
download | nixpkgs-efa1a8b5c43a8d8e9602480d5da313f2cd67573a.tar nixpkgs-efa1a8b5c43a8d8e9602480d5da313f2cd67573a.tar.gz nixpkgs-efa1a8b5c43a8d8e9602480d5da313f2cd67573a.tar.bz2 nixpkgs-efa1a8b5c43a8d8e9602480d5da313f2cd67573a.tar.lz nixpkgs-efa1a8b5c43a8d8e9602480d5da313f2cd67573a.tar.xz nixpkgs-efa1a8b5c43a8d8e9602480d5da313f2cd67573a.tar.zst nixpkgs-efa1a8b5c43a8d8e9602480d5da313f2cd67573a.zip |
pass-secret-service: init at unstable-2020-04-12
Diffstat (limited to 'pkgs/applications/misc/pass-secret-service/default.nix')
-rw-r--r-- | pkgs/applications/misc/pass-secret-service/default.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/applications/misc/pass-secret-service/default.nix b/pkgs/applications/misc/pass-secret-service/default.nix new file mode 100644 index 00000000000..678bc06f800 --- /dev/null +++ b/pkgs/applications/misc/pass-secret-service/default.nix @@ -0,0 +1,61 @@ +{ stdenv, fetchFromGitHub, python3, dbus, gnupg }: + +python3.pkgs.buildPythonApplication rec { + pname = "pass-secret-service"; + # PyPI has old alpha version. Since then the project has switched from using a + # seemingly abandoned D-Bus package pydbus and started using maintained + # dbus-next. So let's use latest from GitHub. + version = "unstable-2020-04-12"; + + src = fetchFromGitHub { + owner = "mdellweg"; + repo = "pass_secret_service"; + rev = "f6fbca6ac3ccd16bfec407d845ed9257adf74dfa"; + sha256 = "0rm4pbx1fiwds1v7f99khhh7x3inv9yniclwd95mrbgljk3cc6a4"; + }; + + + # Need to specify session.conf file for tests because it won't be found under + # /etc/ in check phase. + postPatch = '' + substituteInPlace Makefile \ + --replace \ + "dbus-run-session" \ + "dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf" + ''; + + propagatedBuildInputs = with python3.pkgs; [ + click + cryptography + dbus-next + decorator + pypass + secretstorage + ]; + + checkInputs = + let + ps = python3.pkgs; + in + [ + dbus + gnupg + ps.pytest + ps.pytest-asyncio + ps.pypass + ]; + + checkPhase = '' + runHook preCheck + make test + runHook postCheck + ''; + + meta = { + description = "Libsecret D-Bus API with pass as the backend"; + homepage = "https://github.com/mdellweg/pass_secret_service/"; + license = stdenv.lib.licenses.gpl3Only; + platforms = stdenv.lib.platforms.all; + maintainers = with stdenv.lib.maintainers; [ jluttine ]; + }; +} |