depot/third_party/nixpkgs/pkgs/by-name/pa/parsedmarc/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

41 lines
941 B
Nix

{ 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