nix-config/pkgs/usb-monitor.nix

30 lines
638 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
python3Packages,
}:
buildPythonPackage rec {
pname = "usb-monitor";
version = "1.21";
src = fetchPypi {
inherit version;
pname = "usb_monitor";
hash = "sha256-M+BUmbNxQWcULFECexTnp55EZiJ6y3bYCEtSwqKldAk=";
};
dependencies = [ python3Packages.pyudev ];
pythonImportsCheck = [ "usbmonitor" ];
meta = {
description = "Cross-platform library for USB device monitoring";
homepage = "https://github.com/Eric-Canas/USBMonitor";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sifmelcara ];
platforms = lib.platforms.linux;
};
}