depot/third_party/nixpkgs/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

34 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 ];
};
}