5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
34 lines
736 B
Nix
34 lines
736 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pyyaml
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "irctokens";
|
|
version = "2.0.2";
|
|
disabled = pythonOlder "3.6"; # f-strings
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jesopo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Y9NBqxGUkt48hnXxsmfydHkJmWWb+sRrElV8C7l9bpw=";
|
|
};
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|