1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 jaraco-collections,
6 jaraco-itertools,
7 jaraco-logging,
8 jaraco-stream,
9 jaraco-text,
10 pytestCheckHook,
11 pythonOlder,
12 pytz,
13 setuptools-scm,
14 importlib-resources,
15}:
16
17buildPythonPackage rec {
18 pname = "irc";
19 version = "20.5.0";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.8";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-jdv9GfcSBM7Ount8cnJLFbP6h7q16B5Fp1vvc2oaPHY=";
27 };
28
29 nativeBuildInputs = [ setuptools-scm ];
30
31 propagatedBuildInputs = [
32 jaraco-collections
33 jaraco-itertools
34 jaraco-logging
35 jaraco-stream
36 jaraco-text
37 pytz
38 ]
39 ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ];
40
41 nativeCheckInputs = [ pytestCheckHook ];
42
43 __darwinAllowLocalNetworking = true;
44
45 pythonImportsCheck = [ "irc" ];
46
47 meta = with lib; {
48 description = "IRC (Internet Relay Chat) protocol library for Python";
49 homepage = "https://github.com/jaraco/irc";
50 changelog = "https://github.com/jaraco/irc/blob/v${version}/NEWS.rst";
51 license = licenses.mit;
52 maintainers = [ ];
53 };
54}