22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
34 lines
776 B
Nix
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 ];
|
|
};
|
|
}
|