51 lines
964 B
Nix
51 lines
964 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
|
|
# propagates
|
|
, importlib-metadata
|
|
|
|
# tests
|
|
, editables
|
|
, git
|
|
, pytestCheckHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pdm-backend";
|
|
version = "2.0.7";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pdm-project";
|
|
repo = "pdm-backend";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-+d5EkpF9rZksoR5lahN7XE/jAQpNz7IjWueFYPPGyQs=";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
|
importlib-metadata
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pdm.backend"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
editables
|
|
git
|
|
pytestCheckHook
|
|
setuptools
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pdm-project/pdm-backend";
|
|
changelog = "https://github.com/pdm-project/pdm-backend/releases/tag/${version}";
|
|
description = "Yet another PEP 517 backend.";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|