18 buildPythonPackage rec {
19 pname = "pdm-backend";
23 src = fetchFromGitHub {
24 owner = "pdm-project";
26 rev = "refs/tags/${version}";
27 hash = "sha256-XbHlzt00R0kB8I6nRvteAgpFlUTAvBcF5iaQD5V30ok=";
30 env.PDM_BUILD_SCM_VERSION = version;
32 dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
34 pythonImportsCheck = [ "pdm.backend" ];
45 unset PDM_BUILD_SCM_VERSION
47 # tests require a configured git identity
49 git config --global user.name nixbld
50 git config --global user.email nixbld@localhost
53 setupHook = ./setup-hook.sh;
56 homepage = "https://github.com/pdm-project/pdm-backend";
57 changelog = "https://github.com/pdm-project/pdm-backend/releases/tag/${version}";
58 description = "Yet another PEP 517 backend";
59 license = licenses.mit;
60 maintainers = with maintainers; [ hexa ];