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