2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-10-04 16:56:33 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
irctokens,
|
|
|
|
pendulum,
|
|
|
|
freezegun,
|
2024-10-04 16:56:33 +00:00
|
|
|
unittestCheckHook,
|
2020-11-03 02:18:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ircstates";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.13.0";
|
|
|
|
pyproject = true;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jesopo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-Mq9aOj6PXzPjaz3ofoPcAbur59oUWffmEg8aHt0v+0Q=";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2020-11-03 02:18:15 +00:00
|
|
|
irctokens
|
|
|
|
pendulum
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
freezegun
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "ircstates" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "sans-I/O IRC session state parsing library";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/jesopo/ircstates";
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|