python3Packages.irctokens: init at 2.0.0

This commit is contained in:
Martin Weinelt 2020-10-04 01:03:01 +02:00
parent e7ebd6be80
commit 69ef15309d
No known key found for this signature in database
GPG key ID: BD4AA0528F63F17E
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pyyaml
, python
}:
buildPythonPackage rec {
pname = "irctokens";
version = "2.0.0";
disabled = pythonOlder "3.6"; # f-strings
src = fetchFromGitHub {
owner = "jesopo";
repo = pname;
rev = "v${version}";
sha256 = "0kpxn5paailm4xpdlnzxrhjrfgvvg5pp327wd8kl41a0wbqkj4zb";
};
checkInputs = [ pyyaml ];
checkPhase = ''
${python.interpreter} -m unittest test
'';
pythonImportsCheck = [ "irctokens" ];
meta = with lib; {
description = "RFC1459 and IRCv3 protocol tokeniser library for python3";
license = licenses.mit;
homepage = "https://github.com/jesopo/irctokens";
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -2965,6 +2965,8 @@ in {
irc = callPackage ../development/python-modules/irc { };
irctokens = callPackage ../development/python-modules/irctokens { };
isbnlib = callPackage ../development/python-modules/isbnlib { };
islpy = callPackage ../development/python-modules/islpy { };