at master 873 B view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 gcc-unwrapped, 7}: 8buildPythonPackage rec { 9 pname = "cxxfilt"; 10 version = "0.3.0"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "7df6464ba5e8efbf0d8974c0b2c78b32546676f06059a83515dbdfa559b34214"; 16 }; 17 18 postPatch = 19 let 20 libstdcpp = "${lib.getLib gcc-unwrapped}/lib/libstdc++${stdenv.hostPlatform.extensions.sharedLibrary}"; 21 in 22 '' 23 substituteInPlace cxxfilt/__init__.py \ 24 --replace "find_any_library('stdc++', 'c++')" '"${libstdcpp}"' 25 ''; 26 27 # no tests 28 doCheck = false; 29 30 pythonImportsCheck = [ "cxxfilt" ]; 31 32 meta = with lib; { 33 description = "Demangling C++ symbols in Python / interface to abi::__cxa_demangle"; 34 homepage = "https://github.com/afq984/python-cxxfilt"; 35 license = licenses.bsd2; 36 maintainers = [ ]; 37 }; 38}