forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ci / ci-edit / package.nix
blob3d8a4b541dd4e8e843b21e8b94eca39b8f6c9385
1 { lib
2 , python3
3 , fetchFromGitHub
4 }:
6 python3.pkgs.buildPythonApplication {
7   pname = "ci-edit";
8   version = "51-unstable-2023-04-11";
9   pyproject = true;
11   src = fetchFromGitHub {
12     owner = "google";
13     repo = "ci_edit";
14     # Last build iteration is v51 from 2021, but there are some recent
15     # additions of syntax highlighting and dictionary files.
16     rev = "2976f01dc6421b5639505292b335212d413d044f";
17     hash = "sha256-DwVNNotRcYbvJX6iXffSQyZMFTxQexIhfG8reFmozN8=";
18   };
20   nativeBuildInputs = with python3.pkgs; [
21     setuptools
22   ];
24   postInstall = ''
25     ln -s $out/bin/ci.py $out/bin/ci_edit
26     ln -s $out/bin/ci.py $out/bin/we
27     install -Dm644 $src/app/*.words $out/${python3.sitePackages}/app/
28   '';
30   pythonImportsCheck = [ "app" ];
32   meta = with lib; {
33     description = "Terminal text editor with mouse support and ctrl+Q to quit";
34     homepage = "https://github.com/google/ci_edit";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ katexochen ];
37     mainProgram = "ci_edit";
38     platforms = platforms.unix;
39   };