Unverified Commit e6acfe0e authored by natsukium's avatar natsukium
Browse files

pdm: unpin resolvelib

parent 2c9005e5
Loading
Loading
Loading
Loading
+1 −23
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
, fetchPypi
, nix-update-script
, runtimeShell
@@ -8,29 +7,8 @@
, testers
, pdm
}:
let
  python = python3.override {
    # override resolvelib due to
    # 1. pdm requiring a later version of resolvelib
    # 2. Ansible being packaged as a library
    # 3. Ansible being unable to upgrade to a later version of resolvelib
    # see here for more details: https://github.com/NixOS/nixpkgs/pull/155380/files#r786255738
    packageOverrides = self: super: {
      resolvelib = super.resolvelib.overridePythonAttrs rec {
        version = "1.0.1";
        src = fetchFromGitHub {
          owner = "sarugaku";
          repo = "resolvelib";
          rev = "/refs/tags/${version}";
          hash = "sha256-oxyPn3aFPOyx/2aP7Eg2ThtPbyzrFT1JzWqy6GqNbzM=";
        };
      };
    };
    self = python;
  };
in

with python.pkgs;
with python3.pkgs;
buildPythonApplication rec {
  pname = "pdm";
  version = "2.13.2";