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