patch requests-cache

This commit is contained in:
Charlotte 🦝 Delenk 2022-08-21 15:26:05 +01:00
parent 5a047c538f
commit 57db286b1f
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -5,8 +5,17 @@
with pkgs; let with pkgs; let
inherit (inputs.nixpkgs-stable.legacyPackages.${system}) pypy3; inherit (inputs.nixpkgs-stable.legacyPackages.${system}) pypy3;
tarballs = import ../python/tarballs.nix {inherit inputs pkgs;}; tarballs = import ../python/tarballs.nix {inherit inputs pkgs;};
patched-python3Packages = python3Packages.override {
overrides = self: super: {
requests-cache = super.requests-cache.overrideAttrs (old: {
postPatch = ''
substituteInPlace pyproject.toml --replace 'attrs = "^21.2"' 'attrs = ">=21.2"'
'';
});
};
};
in rec { in rec {
plover-plugins-manager = with python3Packages; plover-plugins-manager = with patched-python3Packages;
buildPythonPackage rec { buildPythonPackage rec {
inherit (tarballs.plover-plugins-manager-src.passthru) pname version; inherit (tarballs.plover-plugins-manager-src.passthru) pname version;
src = tarballs.plover-plugins-manager-src; src = tarballs.plover-plugins-manager-src;