Merge pull request #282711 from fabaff/parsedmarc-fix
python311Packages.parsedmarc: refactor
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
, buildPythonPackage
|
||||
, dateparser
|
||||
, dnspython
|
||||
, elastic-transport
|
||||
, elasticsearch
|
||||
, elasticsearch-dsl
|
||||
, expiringdict
|
||||
@@ -51,7 +52,8 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "elasticsearch<7.14.0" "elasticsearch"
|
||||
--replace "elasticsearch<7.14.0" "elasticsearch" \
|
||||
--replace "elasticsearch-dsl==7.4.0" "elasticsearch-dsl"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -64,6 +66,7 @@ buildPythonPackage rec {
|
||||
boto3
|
||||
dateparser
|
||||
dnspython
|
||||
elastic-transport
|
||||
elasticsearch
|
||||
elasticsearch-dsl
|
||||
expiringdict
|
||||
@@ -89,7 +92,9 @@ buildPythonPackage rec {
|
||||
# https://github.com/domainaware/parsedmarc/issues/426
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "parsedmarc" ];
|
||||
pythonImportsCheck = [
|
||||
"parsedmarc"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
inherit dashboard;
|
||||
@@ -97,11 +102,11 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/domainaware/parsedmarc/blob/master/CHANGELOG.md#${lib.replaceStrings [ "." ] [ "" ] version}";
|
||||
description = "Python module and CLI utility for parsing DMARC reports";
|
||||
homepage = "https://domainaware.github.io/parsedmarc/";
|
||||
mainProgram = "parsedmarc";
|
||||
maintainers = with maintainers; [ talyz ];
|
||||
changelog = "https://github.com/domainaware/parsedmarc/blob/master/CHANGELOG.md#${lib.replaceStrings [ "." ] [ "" ] version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ talyz ];
|
||||
mainProgram = "parsedmarc";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user