biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / sopel / default.nix
blob853c2ae32caca1d6aba0fc94dda73899d28669b8
2   lib,
3   buildPythonPackage,
4   dnspython,
5   fetchPypi,
6   geoip2,
7   ipython,
8   isPyPy,
9   setuptools,
10   praw,
11   pyenchant,
12   pytestCheckHook,
13   pythonOlder,
14   pytz,
15   sqlalchemy,
16   xmltodict,
17   importlib-metadata,
20 buildPythonPackage rec {
21   pname = "sopel";
22   version = "8.0.0";
23   pyproject = true;
25   disabled = isPyPy || pythonOlder "3.7";
27   src = fetchPypi {
28     inherit pname version;
29     hash = "sha256-juLJp0Et5qMZwBZzw0e4tKg1cBYqAsH8KUzqNoIP70U=";
30   };
32   build-system = [ setuptools ];
34   postPatch = ''
35     substituteInPlace pyproject.toml \
36       --replace-fail "setuptools~=66.1" "setuptools"
37   '';
39   dependencies = [
40     dnspython
41     geoip2
42     ipython
43     praw
44     pyenchant
45     pytz
46     sqlalchemy
47     xmltodict
48     importlib-metadata
49   ];
51   pythonRemoveDeps = [ "sopel-help" ];
53   pythonRelaxDeps = [ "sqlalchemy" ];
55   nativeCheckInputs = [ pytestCheckHook ];
57   disabledTests = [
58     # requires network access
59     "test_example_exchange_cmd_0"
60     "test_example_exchange_cmd_1"
61     "test_example_duck_0"
62     "test_example_duck_1"
63     "test_example_suggest_0"
64     "test_example_suggest_1"
65     "test_example_suggest_2"
66     "test_example_tr2_0"
67     "test_example_tr2_1"
68     "test_example_tr2_2"
69     "test_example_title_command_0"
70     "test_example_wiktionary_0"
71     "test_example_wiktionary_ety_0"
72   ];
74   pythonImportsCheck = [ "sopel" ];
76   meta = with lib; {
77     description = "Simple and extensible IRC bot";
78     homepage = "https://sopel.chat";
79     license = licenses.efl20;
80     maintainers = with maintainers; [ mog ];
81   };