Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pycxx / default.nix
blob5cc1056f83271ef2be5a275ffd5ac2802517e704
1 { lib, buildPythonPackage, fetchurl, python }:
3 buildPythonPackage rec {
4   pname = "pycxx";
5   version = "7.1.4";
6   format = "setuptools";
8   src = fetchurl {
9     url = "mirror://sourceforge/cxx/CXX/PyCXX%20V${version}/pycxx-${version}.tar.gz";
10     sha256 = "MUMU+/qsm92WENYFxfjQsSuR8/nE/asYG8HgIbaAaz0=";
11   };
13   outputs = [ "out" "dev" ];
15   postInstall = ''
16     mkdir -p $dev/include
17     mv $out/include/${python.libPrefix}*/CXX/ $dev/include/CXX/
18     mv $out/CXX $dev/src
19     sed -i "s|Src|$dev/src|" $dev/src/cxxextensions.c $dev/src/cxxsupport.cxx
20   '';
22   meta = with lib; {
23     description = "set of classes to help create extensions of Python in the C++ language";
24     homepage = "https://sourceforge.net/projects/cxx/";
25     maintainers = with maintainers; [ freezeboy ];
26     platforms = platforms.all;
27   };