1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, irctokens 6, pendulum 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "ircstates"; 12 version = "0.11.8"; 13 disabled = pythonOlder "3.6"; # f-strings 14 15 src = fetchFromGitHub { 16 owner = "jesopo"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "0scxqcgby4vzh2q937r0wy2mb46aghjf47q3z6fp6di1b6hlj7zh"; 20 }; 21 22 propagatedBuildInputs = [ 23 irctokens 24 pendulum 25 ]; 26 27 checkPhase = '' 28 ${python.interpreter} -m unittest test 29 ''; 30 31 pythonImportsCheck = [ "ircstates" ]; 32 33 meta = with lib; { 34 description = "sans-I/O IRC session state parsing library"; 35 license = licenses.mit; 36 homepage = "https://github.com/jesopo/ircstates"; 37 maintainers = with maintainers; [ hexa ]; 38 }; 39}