Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pdm-backend / default.nix
blob0e1cc04f920b33ae6b839fe5021b94c979cae013
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
6 # propagates
7 , importlib-metadata
9 # tests
10 , editables
11 , git
12 , pytestCheckHook
13 , setuptools
16 buildPythonPackage rec {
17   pname = "pdm-backend";
18   version = "2.1.8";
19   format = "pyproject";
21   src = fetchFromGitHub {
22     owner = "pdm-project";
23     repo = "pdm-backend";
24     rev = "refs/tags/${version}";
25     hash = "sha256-d8i+FvxNFPM18W7NmOwh9bqZnMUenF7eCPdcCw4BT7s=";
26   };
28   env.PDM_BUILD_SCM_VERSION = version;
30   propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
31     importlib-metadata
32   ];
34   pythonImportsCheck = [
35     "pdm.backend"
36   ];
38   nativeCheckInputs = [
39     editables
40     git
41     pytestCheckHook
42     setuptools
43   ];
45   preCheck = ''
46     unset PDM_BUILD_SCM_VERSION
47   '';
49   setupHook = ./setup-hook.sh;
51   meta = with lib; {
52     homepage = "https://github.com/pdm-project/pdm-backend";
53     changelog = "https://github.com/pdm-project/pdm-backend/releases/tag/${version}";
54     description = "Yet another PEP 517 backend.";
55     license = licenses.mit;
56     maintainers = with maintainers; [ hexa ];
57   };