nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyyaml,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "irctokens";
12 version = "2.0.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "jesopo";
17 repo = "irctokens";
18 rev = "v${version}";
19 hash = "sha256-Y9NBqxGUkt48hnXxsmfydHkJmWWb+sRrElV8C7l9bpw=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [
25 pyyaml
26 unittestCheckHook
27 ];
28
29 pythonImportsCheck = [ "irctokens" ];
30
31 meta = {
32 description = "RFC1459 and IRCv3 protocol tokeniser library for python3";
33 license = lib.licenses.mit;
34 homepage = "https://github.com/jesopo/irctokens";
35 maintainers = with lib.maintainers; [ hexa ];
36 };
37}