fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
75 lines
1.7 KiB
Nix
75 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pyqt5,
|
|
pyqt-builder,
|
|
python,
|
|
pythonOlder,
|
|
qtdatavis3d,
|
|
setuptools,
|
|
sip,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyqtdatavisualization";
|
|
version = "5.15.5";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyQtDataVisualization";
|
|
inherit version;
|
|
hash = "sha256-iSf496pwhX7wDFHj379vg92fOFX0FuDVMVknYcu53H8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]"
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
# HACK: paralellize compilation of make calls within pyqt's setup.py
|
|
# pkgs/stdenv/generic/setup.sh doesn't set this for us because
|
|
# make gets called by python code and not its build phase
|
|
# format=pyproject means the pip-build-hook hook gets used to build this project
|
|
# pkgs/development/interpreters/python/hooks/pip-build-hook.sh
|
|
# does not use the enableParallelBuilding flag
|
|
preBuild = ''
|
|
export MAKEFLAGS+="''${enableParallelBuilding:+-j$NIX_BUILD_CORES}"
|
|
'';
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
nativeBuildInputs = [
|
|
sip
|
|
qtdatavis3d
|
|
setuptools
|
|
pyqt-builder
|
|
];
|
|
|
|
buildInputs = [ qtdatavis3d ];
|
|
|
|
propagatedBuildInputs = [ pyqt5 ];
|
|
|
|
dontConfigure = true;
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "PyQt5.QtDataVisualization" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for the Qt Data Visualization library";
|
|
homepage = "https://riverbankcomputing.com/";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ panicgh ];
|
|
};
|
|
}
|