mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
35 lines
733 B
Nix
35 lines
733 B
Nix
{ 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 ];
|
|
};
|
|
}
|