Merge pull request #266016 from natsukium/pdm/fix
pdm: 2.10.0 -> 2.10.1; fix #265883
This commit is contained in:
commit
7774af6540
1 changed files with 15 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, python3
|
, python3
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
, runtimeShell
|
, runtimeShell
|
||||||
|
@ -31,15 +32,25 @@ in
|
||||||
with python.pkgs;
|
with python.pkgs;
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "pdm";
|
pname = "pdm";
|
||||||
version = "2.10.0";
|
version = "2.10.1";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
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 = [
|
nativeBuildInputs = [
|
||||||
pdm-backend
|
pdm-backend
|
||||||
];
|
];
|
||||||
|
@ -101,10 +112,11 @@ buildPythonApplication rec {
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pdm.fming.dev";
|
homepage = "https://pdm-project.org";
|
||||||
changelog = "https://github.com/pdm-project/pdm/releases/tag/${version}";
|
changelog = "https://github.com/pdm-project/pdm/releases/tag/${version}";
|
||||||
description = "A modern Python package manager with PEP 582 support";
|
description = "A modern Python package manager with PEP 582 support";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ cpcloud ];
|
maintainers = with maintainers; [ cpcloud ];
|
||||||
|
mainProgram = "pdm";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue