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