1{
2 lib,
3 buildPythonPackage,
4 fetchurl,
5 omniorb,
6 pkg-config,
7 python,
8}:
9
10buildPythonPackage rec {
11 pname = "omniorbpy";
12 version = "4.3.2";
13 pyproject = false;
14
15 src = fetchurl {
16 url = "http://downloads.sourceforge.net/omniorb/omniORBpy-${version}.tar.bz2";
17 hash = "sha256-y1cX1BKhAbr0MPWYysfWkjGITa5DctjirfPd7rxffrs=";
18 };
19
20 outputs = [
21 "out"
22 "dev"
23 ];
24
25 nativeBuildInputs = [ pkg-config ];
26
27 propagatedBuildInputs = [ omniorb ];
28
29 configureFlags = [
30 "--with-omniorb=${omniorb}"
31 "PYTHON_PREFIX=$out"
32 "PYTHON=${python.interpreter}"
33 ];
34
35 # Transform omniidl_be into a PEP420 namespace
36 postInstall = ''
37 rm $out/${python.sitePackages}/omniidl_be/__init__.py
38 rm $out/${python.sitePackages}/omniidl_be/__pycache__/__init__.*.pyc
39 '';
40
41 # Ensure both python & cxx backends are available
42 pythonImportsCheck = [
43 "omniidl_be.cxx"
44 "omniidl_be.python"
45 "omniORB"
46 ];
47
48 meta = with lib; {
49 description = "Python backend for omniorb";
50 homepage = "http://omniorb.sourceforge.net";
51 license = with licenses; [
52 gpl2Plus
53 lgpl21Plus
54 ];
55 maintainers = with maintainers; [ nim65s ];
56 platforms = platforms.unix;
57 };
58}