mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 18:34:41 +00:00
python3Packages.irctokens: init at 2.0.0
This commit is contained in:
parent
e7ebd6be80
commit
69ef15309d
34
pkgs/development/python-modules/irctokens/default.nix
Normal file
34
pkgs/development/python-modules/irctokens/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue