Commit 04c2037a authored by Ming-Chuan's avatar Ming-Chuan
Browse files

python3Packages.python-wayland-extra: init at 0.7.0



Co-authored-by: default avatarSandro <sandro.jaeckel@gmail.com>
parent 2dfa9e36
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{
  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;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -15593,6 +15593,8 @@ self: super: with self; {
  python-watcherclient = callPackage ../development/python-modules/python-watcherclient { };
  python-wayland-extra = callPackage ../development/python-modules/python-wayland-extra { };
  python-whois = callPackage ../development/python-modules/python-whois { };
  python-wink = callPackage ../development/python-modules/python-wink { };