New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove pythonPackages.flask_cache
#43693
Conversation
The package is currently broken and most folks recommend to use `flask-caching` (see thadeusb/flask-cache#171). The only package in `nixpkgs` which remained to use `flask_cache` (`graphite_api`) still builds with `pythonPackages.flask-caching`. The removal and corresponding `graphite_api` change unbreaks several Hydra builds (see https://hydra.nixos.org/build/76953777).
@GrahamcOfBorg build python2.pkgs.graphite_api python3.pkgs.graphite_api |
}: | ||
|
||
buildPythonPackage rec { | ||
name = "graphite-api-1.0.1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pname
, version
Success on aarch64-linux (full log) Attempted: python2.pkgs.graphite_api, python3.pkgs.graphite_api Partial log (click to expand)
|
Even if this builds, I'm not sure it will work without applying brutasse/graphite-api@842e93f. |
Success on x86_64-linux (full log) Attempted: python2.pkgs.graphite_api, python3.pkgs.graphite_api Partial log (click to expand)
|
thanks for your feedback @dotlambda! I fixed the Is there anything else to fix? :) |
sha256 = "0sz3kav2024ms2z4q03pigcf080gsr5v774z9bp3zw29k2p47ass"; | ||
}; | ||
|
||
patches = [ ./flask-caching-rebased.patch ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a link to brutasse/graphite-api#239.
According to the current convention python packages should live in `pkgs/development/python-modules`. As I altered the `graphite_api` expression previously in d3d1b88 I decided to move it as well. Additionally I applied some minor refactorings: * use `fetchFromGitHub` instead of `fetchgit`. * use `checkInputs` for test dependencies * got rid of fixed points * applied patch which supports flask-caching to 1.3.1 using `git apply -3`
@dotlambda done %) |
@Ma27 Btw, are you actually using the |
long story short, I wanted to try out |
Motivation for this change
See the first commit (d3d1b88) for the original motivation
The second commit moves the
graphite_api
expression (which was changed previously) into its own file.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)