nixpkgs/pkgs/development/python-modules/ircstates/default.nix
V c7ca9e5ffb python3Packages.ircstates: 0.11.8 -> 0.12.1
Change-Id: I14500fc1711a018b03d1ddcf3acc108ee3f731dc
2023-08-18 20:22:55 +02:00

44 lines
820 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, irctokens
, pendulum
, freezegun
, python
}:
buildPythonPackage rec {
pname = "ircstates";
version = "0.12.1";
disabled = pythonOlder "3.6"; # f-strings
src = fetchFromGitHub {
owner = "jesopo";
repo = pname;
rev = "v${version}";
hash = "sha256-F9yOY3YBacyoUzNTvPs7pxp6yNx08tiq1jWQKhGiagc=";
};
propagatedBuildInputs = [
irctokens
pendulum
];
nativeCheckInputs = [
freezegun
];
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 ];
};
}