diff options
author | Robert Schütz <nix@dotlambda.de> | 2024-01-23 15:31:15 -0800 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-27 04:55:52 +0200 |
commit | 471a8ed428b1734b2ca95358285e8803438d2d76 (patch) | |
tree | 422f4cd2f376a43ec408411f63af586f9f2c2fe0 /pkgs/by-name/pa | |
parent | 21ed8adb5e6eb46008a331884d856dd077aa7997 (diff) |
parsedmarc: override msgraph-core version
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r-- | pkgs/by-name/pa/parsedmarc/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/parsedmarc/package.nix b/pkgs/by-name/pa/parsedmarc/package.nix new file mode 100644 index 0000000000000..fab1e01e8ba40 --- /dev/null +++ b/pkgs/by-name/pa/parsedmarc/package.nix @@ -0,0 +1,41 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +let + python = python3.override { + packageOverrides = self: super: { + # https://github.com/domainaware/parsedmarc/issues/464 + msgraph-core = super.msgraph-core.overridePythonAttrs (old: rec { + version = "0.2.2"; + + src = fetchFromGitHub { + owner = "microsoftgraph"; + repo = "msgraph-sdk-python-core"; + rev = "v${version}"; + hash = "sha256-eRRlG3GJX3WeKTNJVWgNTTHY56qiUGOlxtvEZ2xObLA="; + }; + + nativeBuildInputs = with self; [ + flit-core + ]; + + propagatedBuildInputs = with self; [ + requests + ]; + + nativeCheckInputs = with self; [ + pytestCheckHook + responses + ]; + + disabledTestPaths = [ + "tests/integration" + ]; + + pythonImportsCheck = [ "msgraph.core" ]; + }); + }; + }; +in with python.pkgs; toPythonApplication parsedmarc |