biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / jishaku / default.nix
blob32a560a1a1f25e41dedaa0cc0e6f32949cdc075b
2   lib,
3   bash,
4   buildPythonPackage,
5   fetchFromGitHub,
6   fetchpatch,
7   setuptools,
8   discordpy,
9   click,
10   braceexpand,
11   import-expression,
12   tabulate,
13   pytestCheckHook,
14   pytest-asyncio,
15   youtube-dl,
17 buildPythonPackage rec {
18   pname = "jishaku";
19   version = "2.5.2";
20   pyproject = true;
22   src = fetchFromGitHub {
23     owner = "Gorialis";
24     repo = pname;
25     rev = "refs/tags/${version}";
26     hash = "sha256-BWnuk6h80cKwRECyTuRvnYnTC78219oraeTNoqWDd1c=";
27   };
29   patches = [
30     (fetchpatch {
31       # add entrypoint for install script
32       url = "https://github.com/Gorialis/jishaku/commit/b96cd55a1c2fd154c548f08019ccd6f7be9c7f90.patch";
33       hash = "sha256-laPoupwCC1Zthib8G+c1BXqTwZK0Z6up1DKVkhFicJ0=";
34     })
35   ];
37   postPatch = ''
38     substituteInPlace jishaku/shell.py \
39       --replace-fail '"/bin/bash"' '"${lib.getExe bash}"'
40   '';
42   build-system = [ setuptools ];
44   dependencies = [
45     discordpy
46     click
47     braceexpand
48     tabulate
49     import-expression
50   ];
52   nativeCheckInputs = [
53     pytestCheckHook
54     pytest-asyncio
55     youtube-dl
56   ];
58   pythonImportsCheck = [
59     "jishaku"
60     "jishaku.repl"
61     "jishaku.features"
62   ];
64   meta = {
65     description = "Debugging and testing cog for discord.py bots";
66     homepage = "https://jishaku.readthedocs.io/en/latest";
67     changelog = "https://github.com/Gorialis/jishaku/releases/tag/${version}";
68     maintainers = with lib.maintainers; [ ];
69     mainProgram = "jishaku";
70     license = lib.licenses.mit;
71   };