Merge pull request #63753 from jasoncarr0/lesspass
lesspass-cli: init at 9.0.0
This commit is contained in:
commit
1f3b789ebe
|
@ -2749,6 +2749,11 @@
|
||||||
githubId = 26877687;
|
githubId = 26877687;
|
||||||
name = "Yurii Izorkin";
|
name = "Yurii Izorkin";
|
||||||
};
|
};
|
||||||
|
jasoncarr = {
|
||||||
|
email = "jcarr250@gmail.com";
|
||||||
|
github = "jasoncarr0";
|
||||||
|
name = "Jason Carr";
|
||||||
|
};
|
||||||
j-keck = {
|
j-keck = {
|
||||||
email = "jhyphenkeck@gmail.com";
|
email = "jhyphenkeck@gmail.com";
|
||||||
github = "j-keck";
|
github = "j-keck";
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -860,6 +860,8 @@ in
|
||||||
|
|
||||||
lastpass-cli = callPackage ../tools/security/lastpass-cli { };
|
lastpass-cli = callPackage ../tools/security/lastpass-cli { };
|
||||||
|
|
||||||
|
lesspass-cli = callPackage ../tools/security/lesspass-cli { };
|
||||||
|
|
||||||
pacparser = callPackage ../tools/networking/pacparser { };
|
pacparser = callPackage ../tools/networking/pacparser { };
|
||||||
|
|
||||||
pass = callPackage ../tools/security/pass { };
|
pass = callPackage ../tools/security/pass { };
|
||||||
|
|
Loading…
Reference in New Issue