Repository navigation
nixos/parsedmarc: Fix build and runtime - #280940
Conversation
mweinelt
left a comment
There was a problem hiding this comment.
Please update the attribute for the python-module changes to be prefixed with python311Packages, since pythonPackages is a reference for python2.pkgs.
ad6b6fe to
c395896
Compare
|
~1400 rebuilds on each -linux, ~600 on each -darwin. Likely a result from touching the elasticsearch module. But going through a staging cycle to get the propagation fixed on master seems unreasonable. |
|
Are the package changes also required for release-23.11? If not, could we only backport the module fixes, since they cause no rebuild? |
|
The backporting of the package fix is needed indeed :/ Parsedmarc tests on |
|
more or less a duplicate of #279068 |
5fa0d86 to
594dd55
Compare
|
I did bring this PR up to the current state of the module & package. Since I would kinda like to have a working parsedmarc package and module again, I've kept the And maybe #285840 could get some fresh momentum to help get parsedmarc out of the persistent state of breakage? |
|
Unfortunately overrides of libraries aren't possible within the python package set. That would only be possible if The reason is that libraries propagate their dependencies, and they ultimately all end up in a single PYTHONPATH that only supports exactly one version of a python module. With overrides in libraries it would be too easy to end up with multiple different propagated module versions, which would make the package set unmaintainable. |
|
Yeah, that looks plausible. |
594dd55 to
51b0665
Compare
…e unneeded dependency Co-Authored-By: Martin Weinelt <[email protected]>
Previously evaluaton would fail if `smtp.to` was not set, since the default case was not handled. With the current versions of the python elasticsearch libraries, any configuration containing the modules default would fail since it's not a valid URL. The issue adressed in NixOS#279068 is also adressed, thuse closes NixOS#279068.
51b0665 to
896919d
Compare
|
I've skimmed over the comments and I think everything got resolved, or did I miss something? |
|
I can't come up with anything that is still left open. |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-23.11
git worktree add -d .worktree/backport-280940-to-release-23.11 origin/release-23.11
cd .worktree/backport-280940-to-release-23.11
git switch --create backport-280940-to-release-23.11
git cherry-pick -x 928146bc296cbda5615de5fb1d581299d10d1aa0 21ed8adb5e6eb46008a331884d856dd077aa7997 471a8ed428b1734b2ca95358285e8803438d2d76 1f670eeed324218d7a9e6431aa9bfc244f27ff13 e82299570ee4385cb711267b3daa164116081646 896919ded57b9c8fbccc88f2e69cf44a8fe3e356 |
python3Packages.parsedmarc was broken by updating msgraph-core from major version 0 to 1 in NixOS#294305. A workaround was subsequently applied to the parsedmarc application in NixOS#280940 but the module remained broken.
Description of changes
Currently the
parsedmarcModule is not working. This is due to:smtp.tohaving defaults causing evaluation errors.settings.elasticsearch.hosts(if elasticsearch is to be provisioned) not being a valid URL, causing errors.python311Packages.parsedmarcnot building successfully due to missing dependencies / incompatible versions of some dependencies.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.