depot/third_party/nixpkgs/pkgs/development/python-modules/pycxx/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

39 lines
881 B
Nix

{
lib,
buildPythonPackage,
fetchurl,
setuptools,
python,
}:
buildPythonPackage rec {
pname = "pycxx";
version = "7.1.8";
pyproject = true;
src = fetchurl {
url = "mirror://sourceforge/cxx/CXX/PyCXX%20V${version}/pycxx-${version}.tar.gz";
hash = "sha256-S5Hh4RQcI/vVA532NcS7bnVjIWhUj1a4POF3GTwMmMY=";
};
outputs = [
"out"
"dev"
];
build-system = [ setuptools ];
postInstall = ''
mkdir -p $dev/include
mv $out/include/${python.libPrefix}*/CXX/ $dev/include/CXX/
mv $out/CXX $dev/src
sed -i "s|Src|$dev/src|" $dev/src/cxxextensions.c $dev/src/cxxsupport.cxx
'';
meta = {
description = "Set of classes to help create extensions of Python in the C++ language";
homepage = "https://sourceforge.net/projects/cxx/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ freezeboy ];
};
}