
If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
34 lines
675 B
Nix
34 lines
675 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
pyudev,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "usb-monitor";
|
|
version = "1.23";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "usb_monitor";
|
|
hash = "sha256-7xZ30JLPduY0y2SHWI7fvZHB27FbNFAMczHMXnaXl88=";
|
|
};
|
|
|
|
dependencies = [ pyudev ];
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
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;
|
|
};
|
|
}
|