567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
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;
|
|
};
|
|
}
|