nixpkgs/pkgs/development/python-modules/irctokens/default.nix
2022-01-23 01:09:36 +01:00

35 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 ];
};
}