2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchurl,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
python,
|
|
|
|
}:
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycxx";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "7.1.8";
|
|
|
|
pyproject = true;
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/cxx/CXX/PyCXX%20V${version}/pycxx-${version}.tar.gz";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-S5Hh4RQcI/vVA532NcS7bnVjIWhUj1a4POF3GTwMmMY=";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
|
|
|
description = "Set of classes to help create extensions of Python in the C++ language";
|
2020-12-07 07:45:13 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/cxx/";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ freezeboy ];
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
}
|