python313Packages.find-libpython: refactor

This commit is contained in:
Fabian Affolter
2025-08-03 22:50:47 +02:00
committed by GitHub
parent 1b545120cf
commit 3407a2e986
@@ -3,7 +3,6 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
}:
@@ -13,8 +12,6 @@ buildPythonPackage rec {
version = "0.4.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ktbarrett";
repo = "find_libpython";
@@ -22,7 +19,7 @@ buildPythonPackage rec {
hash = "sha256-6VRUkRACtZt8n2VT5MwxZ51/ep+Lt/jmEGyfI1zseJw=";
};
nativeBuildInputs = [
build-system = [
setuptools
setuptools-scm
];
@@ -33,10 +30,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Finds the libpython associated with your environment, wherever it may be hiding";
mainProgram = "find_libpython";
changelog = "https://github.com/ktbarrett/find_libpython/releases/tag/v${version}";
changelog = "https://github.com/ktbarrett/find_libpython/releases/tag/${src.tag}";
homepage = "https://github.com/ktbarrett/find_libpython";
license = licenses.mit;
maintainers = with maintainers; [ jleightcap ];
mainProgram = "find_libpython";
};
}