blob: dfbc8e3043ad9d904b2c53d8222efe79943b98e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
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 = {
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";
};
}
|