depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-qt/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

47 lines
782 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytest
, pyqt5
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-qt";
version = "4.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-AKF7WG3VMLbXqTmZI6QEicpKmjCXGQERdfVdxrXcj0E=";
};
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pytest
];
checkInputs = [
pyqt5
];
pythonImportsCheck = [
"pytestqt"
];
# Tests require X server
doCheck = false;
meta = with lib; {
description = "pytest support for PyQt and PySide applications";
homepage = "https://github.com/pytest-dev/pytest-qt";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}