depot/third_party/nixpkgs/pkgs/development/python-modules/ircstates/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
848 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
irctokens,
pendulum,
freezegun,
python,
}:
buildPythonPackage rec {
pname = "ircstates";
version = "0.12.1";
format = "setuptools";
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 ];
};
}