diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-05-02 12:01:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 12:01:36 +0000 |
commit | c4dfa193ac2b134c6b4f3ee611fd34158ad61aae (patch) | |
tree | 362783cd99afd7c75dd43086e24df4d23ef6743e /pkgs/by-name/pa | |
parent | 172376596cabacc4dd0bafa97aa3b85a75948a35 (diff) | |
parent | 3be507be1e2ea19b8d53450bac494e2ac30a642c (diff) |
Merge master into staging-next
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 |