depot/pkgs/tools/misc/qmake2cmake/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

48 lines
854 B
Nix

{ lib
, buildPythonPackage
, fetchgit
, packaging
, platformdirs
, portalocker
, pyparsing
, sympy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "qmake2cmake";
version = "1.0.6";
src = fetchgit {
url = "https://codereview.qt-project.org/qt/qmake2cmake";
rev = "v${version}";
hash = "sha256-M5XVQ8MXo2Yxg5eZCho2YAGFtB0h++mEAg8NcQVuP/w=";
};
patches = [
./fix-locations.patch
];
propagatedBuildInputs = [
packaging
platformdirs
portalocker
pyparsing
sympy
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
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 ];
};
}