Merge pull request #266016 from natsukium/pdm/fix

pdm: 2.10.0 -> 2.10.1; fix #265883
This commit is contained in:
adisbladis 2023-11-09 16:26:32 +13:00 committed by GitHub
commit 7774af6540
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, stdenv
, python3
, fetchFromGitHub
, fetchpatch
, fetchPypi
, nix-update-script
, runtimeShell
@ -31,15 +32,25 @@ in
with python.pkgs;
buildPythonApplication rec {
pname = "pdm";
version = "2.10.0";
version = "2.10.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ziJJWVr59hsJJqCJljLfSbHHESYegFak+uFLU/k9kZM=";
hash = "sha256-0WZTHGWfxJBZM1RlRN0uFs9kjCum2JjIISatakIReoE=";
};
patches = [
# https://github.com/NixOS/nixpkgs/issues/265883
# https://github.com/pdm-project/pdm/pull/2379
(fetchpatch {
name = "fix-template-permission.patch";
url = "https://github.com/pdm-project/pdm/commit/f0efdcefe589bc58c28ccf6ce2d23cad9a81dccc.patch";
hash = "sha256-NnHDSz2N63JzSzh2t9a5f/QQWM6Hyd5Cn5JY2zem6Ac=";
})
];
nativeBuildInputs = [
pdm-backend
];
@ -101,10 +112,11 @@ buildPythonApplication rec {
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://pdm.fming.dev";
homepage = "https://pdm-project.org";
changelog = "https://github.com/pdm-project/pdm/releases/tag/${version}";
description = "A modern Python package manager with PEP 582 support";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
mainProgram = "pdm";
};
}