Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.4 kB · 116 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117{ lib, azure-identity, azure-monitor-ingestion, boto3, buildPythonPackage, dateparser, dnspython, elastic-transport, elasticsearch, elasticsearch-dsl, expiringdict, fetchPypi, fetchurl, geoip2, google-api-core, google-api-python-client, google-auth, google-auth-httplib2, google-auth-oauthlib, hatchling, imapclient, kafka-python, lxml, mailsuite, msgraph-core, nixosTests, opensearch-py, publicsuffixlist, pythonOlder, pythonRelaxDepsHook, requests, tqdm, xmltodict,}:
let dashboard = fetchurl { url = "https://raw.githubusercontent.com/domainaware/parsedmarc/77331b55c54cb3269205295bd57d0ab680638964/grafana/Grafana-DMARC_Reports.json"; sha256 = "0wbihyqbb4ndjg79qs8088zgrcg88km8khjhv2474y7nzjzkf43i"; };inbuildPythonPackage rec { pname = "parsedmarc"; version = "8.11.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-OBxiaXB8NKNMviRI19rYYJxpnfnaEL3zSPmYB4urIug="; };
nativeBuildInputs = [ hatchling pythonRelaxDepsHook ];
pythonRelaxDeps = [ "elasticsearch" "elasticsearch-dsl" ];
propagatedBuildInputs = [ azure-identity azure-monitor-ingestion boto3 dateparser dnspython elastic-transport elasticsearch elasticsearch-dsl expiringdict geoip2 google-api-core google-api-python-client google-auth google-auth-httplib2 google-auth-oauthlib imapclient kafka-python lxml mailsuite msgraph-core publicsuffixlist requests tqdm xmltodict opensearch-py ];
# no tests on PyPI, no tags on GitHub # https://github.com/domainaware/parsedmarc/issues/426 doCheck = false;
pythonImportsCheck = [ "parsedmarc" ];
passthru = { inherit dashboard; tests = nixosTests.parsedmarc; };
meta = with lib; { description = "Python module and CLI utility for parsing DMARC reports"; homepage = "https://domainaware.github.io/parsedmarc/"; changelog = "https://github.com/domainaware/parsedmarc/blob/master/CHANGELOG.md#${ lib.replaceStrings [ "." ] [ "" ] version }"; license = licenses.asl20; maintainers = with maintainers; [ talyz ]; mainProgram = "parsedmarc"; # https://github.com/domainaware/parsedmarc/issues/464 broken = lib.versionAtLeast msgraph-core.version "1.0.0"; };}