My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/irctokens/default.nix

34 lines
732 B

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