mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
python3Packages.parsedmarc: Init at 7.0.1
This commit is contained in:
parent
ccb70a892a
commit
5c61b9f3cb
72
pkgs/development/python-modules/parsedmarc/default.nix
Normal file
72
pkgs/development/python-modules/parsedmarc/default.nix
Normal file
@ -0,0 +1,72 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchurl
|
||||
, pythonOlder
|
||||
, lib
|
||||
|
||||
# pythonPackages
|
||||
, tqdm
|
||||
, dnspython
|
||||
, expiringdict
|
||||
, urllib3
|
||||
, requests
|
||||
, publicsuffix2
|
||||
, xmltodict
|
||||
, geoip2
|
||||
, IMAPClient
|
||||
, dateparser
|
||||
, elasticsearch-dsl
|
||||
, kafka-python
|
||||
, mailsuite
|
||||
, lxml
|
||||
, boto3
|
||||
}:
|
||||
|
||||
let
|
||||
dashboard = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/domainaware/parsedmarc/77331b55c54cb3269205295bd57d0ab680638964/grafana/Grafana-DMARC_Reports.json";
|
||||
sha256 = "0wbihyqbb4ndjg79qs8088zgrcg88km8khjhv2474y7nzjzkf43i";
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "parsedmarc";
|
||||
version = "7.0.1";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mi4hx410y7ikpfy1582lm252si0c3yryj0idqgqbx417fm21jjc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
tqdm
|
||||
dnspython
|
||||
expiringdict
|
||||
urllib3
|
||||
requests
|
||||
publicsuffix2
|
||||
xmltodict
|
||||
geoip2
|
||||
IMAPClient
|
||||
dateparser
|
||||
elasticsearch-dsl
|
||||
kafka-python
|
||||
mailsuite
|
||||
lxml
|
||||
boto3
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "parsedmarc" ];
|
||||
|
||||
passthru = {
|
||||
inherit dashboard;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Python module and CLI utility for parsing DMARC reports";
|
||||
homepage = "https://domainaware.github.io/parsedmarc/";
|
||||
maintainers = with lib.maintainers; [ talyz ];
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
@ -5255,6 +5255,8 @@ in {
|
||||
|
||||
parsedatetime = callPackage ../development/python-modules/parsedatetime { };
|
||||
|
||||
parsedmarc = callPackage ../development/python-modules/parsedmarc { };
|
||||
|
||||
parsel = callPackage ../development/python-modules/parsel { };
|
||||
|
||||
parse-type = callPackage ../development/python-modules/parse-type { };
|
||||
|
Loading…
Reference in New Issue
Block a user