13 buildPythonPackage rec {
16 format = "setuptools";
17 disabled = pythonOlder "3.6";
19 src = fetchFromGitHub {
23 hash = "sha256-Gm82VRu8GP52BohQzpMUJfh6q2tiUA2GJWOcG7ymGgg=";
28 src = ./replace_env_with_placeholder.patch;
29 ldd_bin = "${stdenv.cc.bintools.libc_bin}/bin/ldd";
33 # Upstream adds some plain text files direct to the package's root directory
34 # https://github.com/Parquery/pylddwrap/blob/master/setup.py#L71
36 rm -f $out/{LICENSE,README.rst,requirements.txt}
39 propagatedBuildInputs = [
44 nativeCheckInputs = [ pytestCheckHook ];
46 # uses mocked ldd from PATH, but we are patching the source to not look at PATH
52 pythonImportsCheck = [ "lddwrap" ];
55 description = "Python wrapper around ldd *nix utility to determine shared libraries of a program";
56 mainProgram = "pylddwrap";
57 homepage = "https://github.com/Parquery/pylddwrap";
58 changelog = "https://github.com/Parquery/pylddwrap/blob/v${version}/CHANGELOG.rst";
59 license = licenses.mit;
60 maintainers = with maintainers; [ thiagokokada ];
61 # should work in any Unix platform that uses glibc, except for darwin
62 # since it has its own tool (`otool`)
63 badPlatforms = platforms.darwin;