Unverified Commit 4a67ab50 authored by Bruno BELANYI's avatar Bruno BELANYI Committed by GitHub
Browse files

Merge pull request #327142 from ipetkov/tandoor-recipies-fix-build

tandoor-recipes: pin python3 to python311, and lxml to 5.1.0
parents 1e7c214f 1f803e4e
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
{ callPackage
, nixosTests
, python3
, python311
, fetchFromGitHub
}:
let
  python = python3.override {
  # python-ldap-3.4.4 does not work with python3(12)
  python = python311.override {
    packageOverrides = self: super: {
      validators = super.validators.overridePythonAttrs (_: rec {
        version = "0.20.0";
@@ -28,6 +29,15 @@ let
          pytest-django
        ];
      });

      # python3.11-extruct-0.16.0 doesn't work with lxml-5.2.2
      lxml = super.lxml.overridePythonAttrs (oldAttrs: rec {
        version = "5.1.0";
        src = oldAttrs.src.override {
          rev = version;
          hash = "sha256-eWLYzZWatYDmhuBTZynsdytlNFKKmtWQ1XIyzVD8sDY=";
        };
      });
    };
  };