hid-tools: 0.4 → 0.7

Code modernization

https://gitlab.freedesktop.org/libevdev/hid-tools/-/compare/0.4...0.7
This commit is contained in:
Jan Tojnar 2024-02-04 16:10:55 +01:00
parent b8b232ae7b
commit 14d416c430

View file

@ -5,24 +5,30 @@
python3.pkgs.buildPythonPackage rec {
pname = "hid-tools";
version = "0.4";
version = "0.7";
format = "setuptools";
format = "pyproject";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libevdev";
repo = "hid-tools";
rev = version;
hash = "sha256-pxU1BvB+rjc5sptafMGnWi+vWPNDyCyUv8gTWg6z5hU=";
hash = "sha256-h880jJcZDc9pIPf+nr30wu2i9y3saAKFZpooJ4MF67E=";
};
nativeBuildInputs = with python3.pkgs; [
hatchling
pypandoc
];
propagatedBuildInputs = with python3.pkgs; [
libevdev
parse
pyyaml
click
pyudev
typing-extensions
];
nativeCheckInputs = with python3.pkgs; [
@ -30,8 +36,14 @@ python3.pkgs.buildPythonPackage rec {
];
# Tests require /dev/uhid
# https://gitlab.freedesktop.org/libevdev/hid-tools/-/issues/18#note_166353
doCheck = false;
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "pypandoc_binary" "pypandoc"
'';
meta = with lib; {
description = "Python scripts to manipulate HID data";
homepage = "https://gitlab.freedesktop.org/libevdev/hid-tools";