14 buildPythonPackage rec {
15 pname = "pdm-build-locked";
19 src = fetchFromGitHub {
20 owner = "pdm-project";
21 repo = "pdm-build-locked";
22 rev = "refs/tags/${version}";
23 hash = "sha256-tgLC1tUgmyX7QvlLpNb/SMQRTDZ+DNFV3o0JELAZEeo=";
27 substituteInPlace tests/conftest.py \
28 --replace-fail '"pdm.pytest"' ""
29 sed -i "/addopts/d" pyproject.toml
32 build-system = [ pdm-backend ];
34 dependencies = lib.optionals (pythonOlder "3.11") [ tomli ];
36 pythonImportsCheck = [ "pdm_build_locked" ];
46 # circular import of pdm
47 "tests/unit/test_build_command.py"
51 description = "Pdm-build-locked is a pdm plugin to publish locked dependencies as optional-dependencies";
52 homepage = "https://github.com/pdm-project/pdm-build-locked";
53 changelog = "https://github.com/pdm-project/pdm-build-locked/releases/tag/${version}";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ natsukium ];