2023-01-18 05:35:19 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchgit
|
|
|
|
, packaging
|
2023-04-24 23:14:24 +02:00
|
|
|
, platformdirs
|
2023-01-18 05:35:19 +01:00
|
|
|
, portalocker
|
2023-03-17 07:31:12 +01:00
|
|
|
, pyparsing
|
2023-01-18 05:35:19 +01:00
|
|
|
, sympy
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qmake2cmake";
|
2023-12-25 11:09:22 +01:00
|
|
|
version = "1.0.6";
|
2023-01-18 05:35:19 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://codereview.qt-project.org/qt/qmake2cmake";
|
|
|
|
rev = "v${version}";
|
2023-12-25 11:09:22 +01:00
|
|
|
hash = "sha256-M5XVQ8MXo2Yxg5eZCho2YAGFtB0h++mEAg8NcQVuP/w=";
|
2023-01-18 05:35:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-locations.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
2023-04-24 23:14:24 +02:00
|
|
|
platformdirs
|
2023-01-18 05:35:19 +01:00
|
|
|
portalocker
|
2023-03-17 07:31:12 +01:00
|
|
|
pyparsing
|
2023-01-18 05:35:19 +01:00
|
|
|
sympy
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2023-01-18 05:35:19 +01:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-04-24 23:14:24 +02:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2023-01-18 05:35:19 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to convert qmake .pro files to CMakeLists.txt";
|
|
|
|
homepage = "https://wiki.qt.io/Qmake2cmake";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ wegank ];
|
|
|
|
};
|
|
|
|
}
|