mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 10:04:24 +01:00
39 lines
918 B
Nix
39 lines
918 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "find-libpython";
|
|
version = "0.5.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ktbarrett";
|
|
repo = "find_libpython";
|
|
tag = "v${version}";
|
|
hash = "sha256-g2Gl+usa1mJMvvumynnoy/ckFTSrFA57o339t2j9lWQ=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "find_libpython" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jleightcap ];
|
|
mainProgram = "find_libpython";
|
|
};
|
|
}
|