summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-xvfb/default.nix
blob: e3b313bc7709b25032db6c83cd277dd2e192dd1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytest,
  pyvirtualdisplay,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pytest-xvfb";
  version = "3.1.1";
  pyproject = true;

  src = fetchPypi {
    pname = "pytest_xvfb";
    inherit version;
    hash = "sha256-kFk2NEJ9l0snLoRXk+RTP1uCfJ2EwFGHkBNiRQQXXkQ=";
  };

  build-system = [ setuptools ];

  buildInputs = [ pytest ];

  dependencies = [ pyvirtualdisplay ];

  meta = {
    description = "Pytest plugin to run Xvfb for tests";
    homepage = "https://github.com/The-Compiler/pytest-xvfb";
    changelog = "https://github.com/The-Compiler/pytest-xvfb/blob/v${version}/CHANGELOG.rst";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}