nixpkgs/pkgs/development/python-modules/pytest-xvfb/default.nix
Samuel Ainsworth ecf05f1c15 python3Packages: virtual-display -> PyVirtualDisplay
virtual-display is a quite old package, and it's not clear why it was named "virtual-display" as the PyPI name is (and was) "PyVirtualDisplay". In any case, this commit rectifies that inconsistency.
2023-01-08 04:17:59 +00:00

32 lines
606 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, PyVirtualDisplay
, isPy27
}:
buildPythonPackage rec {
pname = "pytest-xvfb";
version = "2.0.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1kyq5rg27dsnj7dc6x9y7r8vwf8rc88y2ppnnw6r96alw0nn9fn4";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [
PyVirtualDisplay
];
meta = with lib; {
description = "A pytest plugin to run Xvfb for tests";
homepage = "https://github.com/The-Compiler/pytest-xvfb";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}