rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / applications / misc / loxodo / default.nix
bloba5b729c3cf3bfed999197124d6638f324f353879
1 { lib, python3, fetchFromGitHub }:
3 python3.pkgs.buildPythonApplication {
4   pname = "loxodo";
5   version = "unstable-2021-02-08";
7   src = fetchFromGitHub {
8     owner = "sommer";
9     repo = "loxodo";
10     rev = "7add982135545817e9b3e2bbd0d27a2763866133";
11     sha256 = "1cips4pvrqga8q1ibs23vjrf8dwan860x8jvjmc52h6qvvvv60yl";
12   };
14   patches = [ ./wxpython.patch ];
16   propagatedBuildInputs = with python3.pkgs; [ six wxpython ];
18   postInstall = ''
19     mv $out/bin/loxodo.py $out/bin/loxodo
20     mkdir -p $out/share/applications
21     cat > $out/share/applications/loxodo.desktop <<EOF
22     [Desktop Entry]
23     Type=Application
24     Exec=$out/bin/loxodo
25     Icon=$out/${python3.sitePackages}/resources/loxodo-icon.png
26     Name=Loxodo
27     GenericName=Password Vault
28     Categories=Application;Other;
29     EOF
30   '';
32   doCheck = false;  # Tests are interactive.
34   meta = with lib; {
35     description = "A Password Safe V3 compatible password vault";
36     mainProgram = "loxodo";
37     homepage = "https://www.christoph-sommer.de/loxodo/";
38     license = licenses.gpl2Plus;
39     platforms = platforms.linux;
40     maintainers = with maintainers; [ ];
41   };