2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "find-libpython";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.4.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ktbarrett";
|
|
|
|
repo = "find_libpython";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-rYVGE9P5Xtm32kMoiqaZVMgnDbX3JBnI1uV80aNNOfw=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "find_libpython" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Finds the libpython associated with your environment, wherever it may be hiding";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "find_libpython";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/ktbarrett/find_libpython/releases/tag/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/ktbarrett/find_libpython";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jleightcap ];
|
|
|
|
};
|
|
|
|
}
|