40 lines
920 B
Nix
40 lines
920 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "find-libpython";
|
|
version = "0.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ktbarrett";
|
|
repo = "find_libpython";
|
|
tag = "v${version}";
|
|
hash = "sha256-6VRUkRACtZt8n2VT5MwxZ51/ep+Lt/jmEGyfI1zseJw=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "find_libpython" ];
|
|
|
|
meta = with lib; {
|
|
description = "Finds the libpython associated with your environment, wherever it may be hiding";
|
|
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";
|
|
};
|
|
}
|