uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
39
pkgs/tools/security/lesspass-cli/default.nix
Normal file
39
pkgs/tools/security/lesspass-cli/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, python3, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
inherit (python3.pkgs) buildPythonApplication pytest mock pexpect;
|
||||
repo = "lesspass";
|
||||
in
|
||||
buildPythonApplication rec {
|
||||
pname = "lesspass-cli";
|
||||
version = "9.1.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = repo;
|
||||
repo = repo;
|
||||
rev = version;
|
||||
sha256 = "126zk248s9r72qk9b8j27yvb8gglw49kazwz0sd69b5kkxvhz2dh";
|
||||
};
|
||||
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 lib; {
|
||||
description = "Stateless password manager";
|
||||
homepage = "https://lesspass.com";
|
||||
maintainers = with maintainers; [ jasoncarr ];
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue