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