diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-08-22 18:47:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 18:47:14 -0400 |
commit | 1f3b789ebe954bdd59f5ec05761143c37cdfa179 (patch) | |
tree | f8c4e184a757ebe899f80d2e64b96fc42e30d14a | |
parent | 856dce77b726e8e4c848b5c3e50ee5893752a018 (diff) | |
parent | 4e4a4461d85e378aa068653b0e56d7fef3903a88 (diff) | |
download | nixlib-1f3b789ebe954bdd59f5ec05761143c37cdfa179.tar nixlib-1f3b789ebe954bdd59f5ec05761143c37cdfa179.tar.gz nixlib-1f3b789ebe954bdd59f5ec05761143c37cdfa179.tar.bz2 nixlib-1f3b789ebe954bdd59f5ec05761143c37cdfa179.tar.lz nixlib-1f3b789ebe954bdd59f5ec05761143c37cdfa179.tar.xz nixlib-1f3b789ebe954bdd59f5ec05761143c37cdfa179.tar.zst nixlib-1f3b789ebe954bdd59f5ec05761143c37cdfa179.zip |
Merge pull request #63753 from jasoncarr0/lesspass
lesspass-cli: init at 9.0.0
-rw-r--r-- | maintainers/maintainer-list.nix | 5 | ||||
-rw-r--r-- | pkgs/tools/security/lesspass-cli/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 45 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 60f7b2be5217..3e46cd3893e7 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2749,6 +2749,11 @@ githubId = 26877687; name = "Yurii Izorkin"; }; + jasoncarr = { + email = "jcarr250@gmail.com"; + github = "jasoncarr0"; + name = "Jason Carr"; + }; j-keck = { email = "jhyphenkeck@gmail.com"; github = "j-keck"; diff --git a/pkgs/tools/security/lesspass-cli/default.nix b/pkgs/tools/security/lesspass-cli/default.nix new file mode 100644 index 000000000000..afcdf0c0a07a --- /dev/null +++ b/pkgs/tools/security/lesspass-cli/default.nix @@ -0,0 +1,38 @@ +{ stdenv, python3, fetchFromGitHub }: + +let + inherit (python3.pkgs) buildPythonApplication pytest mock pexpect; +in +buildPythonApplication rec { + pname = "lesspass-cli"; + version = "9.0.0"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = version; + sha256 = "1mdv0c0fn4d72iigy8hz4s7kf7q3pg4gjjadxwxyjwsalapnsapk"; + }; + sourceRoot = "source/cli"; + + # some tests are designed to run against code in the source directory - adapt to run against + # *installed* code + postPatch = '' + for f in tests/test_functional.py tests/test_interaction.py ; do + substituteInPlace $f --replace "lesspass/core.py" "-m lesspass.core" + done + ''; + + checkInputs = [ pytest mock pexpect ]; + checkPhase = '' + mv lesspass lesspass.hidden # ensure we're testing against *installed* package + pytest tests + ''; + + meta = with stdenv.lib; { + description = "Stateless password manager"; + homepage = https://lesspass.com; + maintainers = with maintainers; [ jasoncarr ]; + license = licenses.gpl3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aaf227224e79..74706fc3ebf3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -860,6 +860,8 @@ in lastpass-cli = callPackage ../tools/security/lastpass-cli { }; + lesspass-cli = callPackage ../tools/security/lesspass-cli { }; + pacparser = callPackage ../tools/networking/pacparser { }; pass = callPackage ../tools/security/pass { }; |