567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
788 B
Nix
41 lines
788 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
pyyaml,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "irctokens";
|
|
version = "2.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6"; # f-strings
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jesopo";
|
|
repo = "irctokens";
|
|
rev = "v${version}";
|
|
hash = "sha256-Y9NBqxGUkt48hnXxsmfydHkJmWWb+sRrElV8C7l9bpw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pyyaml
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "irctokens" ];
|
|
|
|
meta = {
|
|
description = "RFC1459 and IRCv3 protocol tokeniser library for python3";
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/jesopo/irctokens";
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|