btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ev / everest-mons / package.nix
blob82054c21cb2c4a08c919fe05fd890e0a0ce5f4b9
1 { lib
2 , fetchPypi
3 , python3Packages
4 } :
6 python3Packages.buildPythonApplication rec {
7   pname = "everest-mons";
8   version = "2.0.0";
10   src = fetchPypi {
11     inherit version;
12     pname = "mons";
13     hash = "sha256-E1yBTwZ4T2C3sXoLGz0kAcvas0q8tO6Aaiz3SHrT4ZE=";
14   };
16   build-system = with python3Packages; [
17     setuptools
18     setuptools-scm
19   ];
20   pyproject = true;
21   dependencies = with python3Packages; [
22     dnfile
23     pefile
24     click
25     tqdm
26     xxhash
27     pyyaml
28     urllib3
29     platformdirs
30   ];
32   pythonImportsCheck = [ "mons" ];
33   nativeCheckInputs = with python3Packages; [
34     pytestCheckHook
35   ];
36   preCheck = ''
37     export HOME=$TMPDIR
38   '';
40   meta = with lib; {
41     homepage = "https://mons.coloursofnoise.ca/";
42     description = "A commandline Everest installer and mod manager for Celeste";
43     license = licenses.mit;
44     maintainers = with lib.maintainers; [ ulysseszhan ];
45     mainProgram = "mons";
46   };