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 ] ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ];
39
40 nativeCheckInputs = [ pytestCheckHook ];
41
42 __darwinAllowLocalNetworking = true;
43
44 pythonImportsCheck = [ "irc" ];
45
46 meta = with lib; {
47 description = "IRC (Internet Relay Chat) protocol library for Python";
48 homepage = "https://github.com/jaraco/irc";
49 changelog = "https://github.com/jaraco/irc/blob/v${version}/NEWS.rst";
50 license = licenses.mit;
51 maintainers = [ ];
52 };
53}