1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "find-libpython";
10 version = "0.3.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit version;
15 pname = "find_libpython";
16 sha256 = "sha256-bn/l2a9/rW3AZstVFaDpyQpx8f6yuy+OTNu0+DJ26eU=";
17 };
18
19 disabled = pythonOlder "3.7";
20
21 pythonImportsCheck = [ "find_libpython" ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 meta = with lib; {
26 description = "Finds the libpython associated with your environment, wherever it may be hiding";
27 changelog = "https://github.com/ktbarrett/find_libpython/releases/tag/${version}";
28 homepage = "https://github.com/ktbarrett/find_libpython";
29 license = licenses.mit;
30 maintainers = with maintainers; [ jleightcap ];
31 };
32}