2021-12-19 01:06:50 +00:00
|
|
|
{ lib, python3, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
python3.pkgs.buildPythonApplication {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "loxodo";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "unstable-2021-02-08";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sommer";
|
|
|
|
repo = "loxodo";
|
2021-12-19 01:06:50 +00:00
|
|
|
rev = "7add982135545817e9b3e2bbd0d27a2763866133";
|
|
|
|
sha256 = "1cips4pvrqga8q1ibs23vjrf8dwan860x8jvjmc52h6qvvvv60yl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
patches = [ ./wxpython.patch ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [ six wxpython ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/loxodo.py $out/bin/loxodo
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cat > $out/share/applications/loxodo.desktop <<EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Type=Application
|
|
|
|
Exec=$out/bin/loxodo
|
2024-02-07 01:22:34 +00:00
|
|
|
Icon=$out/${python3.sitePackages}/resources/loxodo-icon.png
|
2020-04-24 23:36:52 +00:00
|
|
|
Name=Loxodo
|
|
|
|
GenericName=Password Vault
|
|
|
|
Categories=Application;Other;
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
doCheck = false; # Tests are interactive.
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Password Safe V3 compatible password vault";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "loxodo";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.christoph-sommer.de/loxodo/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|