1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 irctokens, 7 pendulum, 8 freezegun, 9 unittestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "ircstates"; 14 version = "0.13.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "jesopo"; 19 repo = "ircstates"; 20 rev = "v${version}"; 21 hash = "sha256-Mq9aOj6PXzPjaz3ofoPcAbur59oUWffmEg8aHt0v+0Q="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 pythonRelaxDeps = [ "pendulum" ]; 27 28 dependencies = [ 29 irctokens 30 pendulum 31 ]; 32 33 nativeCheckInputs = [ 34 freezegun 35 unittestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "ircstates" ]; 39 40 meta = with lib; { 41 description = "sans-I/O IRC session state parsing library"; 42 license = licenses.mit; 43 homepage = "https://github.com/jesopo/ircstates"; 44 maintainers = with maintainers; [ hexa ]; 45 }; 46}