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