about summary refs log tree commit diff
path: root/pkgs/by-name/pa/parsedmarc/package.nix
blob: 6c08dced632674b05e28c2e87cb0440dead682bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ 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