3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.syslog-rfc5424-formatter: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-16 10:09:33 +02:00 committed by GitHub
parent 8fe13bfac7
commit 389ea38a85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,29 @@
{ 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}";
sha256 = "sha256-dvRSOMXRmZf0vEEyX6H7OBSfo/PgyOLKuDS8X6g4qe0=";
hash = "sha256-dvRSOMXRmZf0vEEyX6H7OBSfo/PgyOLKuDS8X6g4qe0=";
};
# Tests are not picked up, review later again
doCheck = false;
pythonImportsCheck = [ "syslog_rfc5424_formatter" ];
pythonImportsCheck = [
"syslog_rfc5424_formatter"
];
meta = with lib; {
description = "Python logging formatter for emitting RFC5424 Syslog messages";