1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 pyyaml,
8 unittestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "irctokens";
13 version = "2.0.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.6"; # f-strings
17
18 src = fetchFromGitHub {
19 owner = "jesopo";
20 repo = "irctokens";
21 rev = "v${version}";
22 hash = "sha256-Y9NBqxGUkt48hnXxsmfydHkJmWWb+sRrElV8C7l9bpw=";
23 };
24
25 build-system = [ setuptools ];
26
27 nativeCheckInputs = [
28 pyyaml
29 unittestCheckHook
30 ];
31
32 pythonImportsCheck = [ "irctokens" ];
33
34 meta = with lib; {
35 description = "RFC1459 and IRCv3 protocol tokeniser library for python3";
36 license = licenses.mit;
37 homepage = "https://github.com/jesopo/irctokens";
38 maintainers = with maintainers; [ hexa ];
39 };
40}