2020-10-04 01:11:43 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, pythonOlder
|
|
|
|
, irctokens
|
|
|
|
, pendulum
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ircstates";
|
2021-04-13 17:45:16 +02:00
|
|
|
version = "0.11.8";
|
2020-10-04 01:11:43 +02:00
|
|
|
disabled = pythonOlder "3.6"; # f-strings
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jesopo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-13 17:45:16 +02:00
|
|
|
sha256 = "0scxqcgby4vzh2q937r0wy2mb46aghjf47q3z6fp6di1b6hlj7zh";
|
2020-10-04 01:11:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
irctokens
|
|
|
|
pendulum
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest test
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|