python3Packages.pythonfinder: modernize

This commit is contained in:
Fabian Affolter
2026-04-06 14:55:35 +02:00
committed by GitHub
parent 306f3de491
commit ecbe4300b6
@@ -10,7 +10,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pythonfinder";
version = "3.0.3";
pyproject = true;
@@ -18,13 +18,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "sarugaku";
repo = "pythonfinder";
tag = version;
tag = finalAttrs.version;
hash = "sha256-p+r/0MjxhMcc0n5gPEbdGjC2M+yGqGT/YvxlyU8xTtA=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
propagatedBuildInputs = [ packaging ];
dependencies = [ packaging ];
optional-dependencies = {
cli = [ click ];
@@ -35,16 +35,16 @@ buildPythonPackage rec {
pytest-timeout
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "pythonfinder" ];
meta = {
description = "Cross platform search tool for finding Python";
mainProgram = "pyfinder";
homepage = "https://github.com/sarugaku/pythonfinder";
changelog = "https://github.com/sarugaku/pythonfinder/blob/${src.tag}/CHANGELOG.rst";
changelog = "https://github.com/sarugaku/pythonfinder/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cpcloud ];
mainProgram = "pyfinder";
};
}
})