1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6 setuptools-scm,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "dlinfo";
12 version = "2.0.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "fphammerle";
17 repo = "python-dlinfo";
18 tag = "v${version}";
19 hash = "sha256-W9WfXU5eIMQQImzRgTJS0KL4IZfRtLrK8TYmdEc0VLI=";
20 };
21
22 build-system = [ setuptools-scm ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "dlinfo" ];
27
28 meta = {
29 changelog = "https://github.com/fphammerle/python-dlinfo/blob/${src.tag}/CHANGELOG.md";
30 description = "Python wrapper for libc's dlinfo and dyld_find on Mac";
31 homepage = "https://github.com/fphammerle/python-dlinfo";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ dotlambda ];
34 broken = stdenv.hostPlatform.isDarwin;
35 };
36}