1 { lib, python3, fetchFromGitHub, fetchurl }:
3 python = python3.override {
4 # override resolvelib due to
5 # 1. pdm requiring a later version of resolvelib
6 # 2. Ansible being packaged as a library
7 # 3. Ansible being unable to upgrade to a later version of resolvelib
8 # see here for more details: https://github.com/NixOS/nixpkgs/pull/155380/files#r786255738
9 packageOverrides = self: super: {
10 resolvelib = super.resolvelib.overridePythonAttrs (attrs: rec {
12 src = fetchFromGitHub {
16 sha256 = "sha256-QDHEdVET7HN2ZCKxNUMofabR+rxJy0erWhNQn94D7eI=";
25 buildPythonApplication rec {
29 disabled = pythonOlder "3.7";
32 inherit pname version;
33 hash = "sha256-W+5B1JfOyTpJaT+le1zxyDNwGATrErxNNHw+x5VdfOc=";
36 propagatedBuildInputs = [
57 ++ cachecontrol.optional-dependencies.filecache
58 ++ lib.optionals (pythonOlder "3.8") [
78 # fails to locate setuptools (maybe upstream bug)
79 "test_convert_setup_py_project"
80 # pythonfinder isn't aware of nix's python infrastructure
81 "test_use_wrapper_python"
82 "test_use_invalid_wrapper_python"
86 homepage = "https://pdm.fming.dev";
87 description = "A modern Python package manager with PEP 582 support";
88 license = licenses.mit;
89 maintainers = with maintainers; [ cpcloud ];