-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333603 from natsukium/pdm/update
pdm: 2.15.4 -> 2.17.3
- Loading branch information
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
pkgs/development/python-modules/pdm-build-locked/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
pythonOlder, | ||
pdm-backend, | ||
tomli, | ||
build, | ||
hatchling, | ||
pkginfo, | ||
pytestCheckHook, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pdm-build-locked"; | ||
version = "0.3.3"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "pdm-project"; | ||
repo = "pdm-build-locked"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-tgLC1tUgmyX7QvlLpNb/SMQRTDZ+DNFV3o0JELAZEeo="; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace tests/conftest.py \ | ||
--replace-fail '"pdm.pytest"' "" | ||
sed -i "/addopts/d" pyproject.toml | ||
''; | ||
|
||
build-system = [ pdm-backend ]; | ||
|
||
dependencies = lib.optionals (pythonOlder "3.11") [ tomli ]; | ||
|
||
pythonImportsCheck = [ "pdm_build_locked" ]; | ||
|
||
nativeCheckInputs = [ | ||
build | ||
hatchling | ||
pkginfo | ||
pytestCheckHook | ||
]; | ||
|
||
disabledTestPaths = [ | ||
# circular import of pdm | ||
"tests/unit/test_build_command.py" | ||
]; | ||
|
||
meta = { | ||
description = "Pdm-build-locked is a pdm plugin to publish locked dependencies as optional-dependencies"; | ||
homepage = "https://github.com/pdm-project/pdm-build-locked"; | ||
changelog = "https://github.com/pdm-project/pdm-build-locked/releases/tag/${version}"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ natsukium ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters