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