1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "find-libpython";
12 version = "0.4.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ktbarrett";
17 repo = "find_libpython";
18 tag = "v${version}";
19 hash = "sha256-6VRUkRACtZt8n2VT5MwxZ51/ep+Lt/jmEGyfI1zseJw=";
20 };
21
22 build-system = [
23 setuptools
24 setuptools-scm
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "find_libpython" ];
30
31 meta = with lib; {
32 description = "Finds the libpython associated with your environment, wherever it may be hiding";
33 changelog = "https://github.com/ktbarrett/find_libpython/releases/tag/${src.tag}";
34 homepage = "https://github.com/ktbarrett/find_libpython";
35 license = licenses.mit;
36 maintainers = with maintainers; [ jleightcap ];
37 mainProgram = "find_libpython";
38 };
39}