summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-wayland-extra/default.nix
blob: 2a91e2729ab6cf3c831968effa0727fb62b0ea70 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  buildPythonPackage,
  fetchPypi,
  lib,
  hatchling,
  black,
  lxml,
  pytest,
  requests,
  ruff,
}:

buildPythonPackage rec {
  pname = "python-wayland-extra";
  version = "0.7.0";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "python_wayland_extra";
    hash = "sha256-HSBOCWP3o/BHmg3LO+LU+GpYkEYSqdljjYcEPdOnxZk=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail ', "black", "lxml", "requests", "pytest", "ruff"' ""
  '';

  build-system = [ hatchling ];

  dependencies = [
    lxml
    requests
  ];

  # requires working wayland display
  doCheck = false;

  pythonImportsCheck = [ "wayland" ];

  meta = {
    description = "Implementation of the Wayland protocol with no external dependencies";
    homepage = "https://github.com/dennisrijsdijk/python-wayland-extra";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sifmelcara ];
    platforms = lib.platforms.linux;
  };
}