diff --git a/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix b/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix index 1d467b4e55de..761e079d76c4 100644 --- a/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix +++ b/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix @@ -2,21 +2,28 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "syslog-rfc5424-formatter"; version = "1.2.3"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "easypost"; repo = "syslog-rfc5424-formatter"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-dvRSOMXRmZf0vEEyX6H7OBSfo/PgyOLKuDS8X6g4qe0="; }; - # Tests are not picked up, review later again + build-system = [ + setuptools + ]; + + # Tests depend on syslog_rfc5424_parser, which we don't package doCheck = false; pythonImportsCheck = [ "syslog_rfc5424_formatter" ]; @@ -24,7 +31,8 @@ buildPythonPackage rec { meta = { description = "Python logging formatter for emitting RFC5424 Syslog messages"; homepage = "https://github.com/easypost/syslog-rfc5424-formatter"; + changelog = "https://github.com/EasyPost/syslog-rfc5424-formatter/blob/v${finalAttrs.version}/CHANGES.md"; license = with lib.licenses; [ isc ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})