depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-qt/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

47 lines
779 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytest
, pyqt5
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-qt";
version = "4.3.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-AlYEGveAgt/AjiLM+GCqqHjYApVX8D9L/CAH/CkbHmE=";
};
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pytest
];
nativeCheckInputs = [
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; [ ];
};
}