diff options
Diffstat (limited to 'pkgs/development/python-modules/parsedmarc/default.nix')
-rw-r--r-- | pkgs/development/python-modules/parsedmarc/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/parsedmarc/default.nix b/pkgs/development/python-modules/parsedmarc/default.nix index a5c59338fcdce..b9d4df1d58ee5 100644 --- a/pkgs/development/python-modules/parsedmarc/default.nix +++ b/pkgs/development/python-modules/parsedmarc/default.nix @@ -24,11 +24,12 @@ , mailsuite , msgraph-core , nixosTests +, opensearch-py , publicsuffixlist , pythonOlder +, pythonRelaxDepsHook , requests , tqdm -, urllib3 , xmltodict }: @@ -50,14 +51,14 @@ buildPythonPackage rec { hash = "sha256-tK/cxOw50awcDAGRDTQ+Nxb9aJl2+zLZHuJq88xNmXM="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "elasticsearch<7.14.0" "elasticsearch" \ - --replace "elasticsearch-dsl==7.4.0" "elasticsearch-dsl" - ''; - nativeBuildInputs = [ hatchling + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "elasticsearch" + "elasticsearch-dsl" ]; propagatedBuildInputs = [ @@ -84,8 +85,8 @@ buildPythonPackage rec { publicsuffixlist requests tqdm - urllib3 xmltodict + opensearch-py ]; # no tests on PyPI, no tags on GitHub @@ -108,5 +109,7 @@ buildPythonPackage rec { 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"; }; } |