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

33 lines
776 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "syslog-rfc5424-formatter";
version = "1.2.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "easypost";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dvRSOMXRmZf0vEEyX6H7OBSfo/PgyOLKuDS8X6g4qe0=";
};
# Tests are not picked up, review later again
doCheck = false;
pythonImportsCheck = [ "syslog_rfc5424_formatter" ];
meta = with lib; {
description = "Python logging formatter for emitting RFC5424 Syslog messages";
homepage = "https://github.com/easypost/syslog-rfc5424-formatter";
license = with licenses; [ isc ];
maintainers = with maintainers; [ fab ];
};
}