81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
34 lines
732 B
Nix
34 lines
732 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pyyaml
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "irctokens";
|
|
version = "2.0.1";
|
|
disabled = pythonOlder "3.6"; # f-strings
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jesopo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-FgcLngS11U9eBNV/8jllwdrm89tCmthA1sUaFDovk6U=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|