nixpkgs/pkgs/development/python-modules/irc/default.nix
Michael Daniels 075e8c2c4f
treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

52 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
jaraco-collections,
jaraco-itertools,
jaraco-logging,
jaraco-stream,
jaraco-text,
pytestCheckHook,
pythonOlder,
pytz,
setuptools-scm,
importlib-resources,
}:
buildPythonPackage rec {
pname = "irc";
version = "20.5.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-jdv9GfcSBM7Ount8cnJLFbP6h7q16B5Fp1vvc2oaPHY=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
jaraco-collections
jaraco-itertools
jaraco-logging
jaraco-stream
jaraco-text
pytz
]
++ lib.optionals (pythonOlder "3.12") [ importlib-resources ];
nativeCheckInputs = [ pytestCheckHook ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "irc" ];
meta = {
description = "IRC (Internet Relay Chat) protocol library for Python";
homepage = "https://github.com/jaraco/irc";
changelog = "https://github.com/jaraco/irc/blob/v${version}/NEWS.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}