nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 892 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pytest-cov-stub, 8}: 9 10buildPythonPackage rec { 11 pname = "usb-devices"; 12 version = "0.4.5"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Bluetooth-Devices"; 17 repo = "usb-devices"; 18 tag = "v${version}"; 19 hash = "sha256-Nfdl5oRIdOfAo5PFAJJpadRyu2zeEkmYzxDQxbvpt6c="; 20 }; 21 22 nativeBuildInputs = [ poetry-core ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 pytest-cov-stub 27 ]; 28 29 pythonImportsCheck = [ "usb_devices" ]; 30 31 meta = { 32 description = "Library for for mapping, describing, and resetting USB devices"; 33 homepage = "https://github.com/Bluetooth-Devices/usb-devices"; 34 changelog = "https://github.com/Bluetooth-Devices/usb-devices/blob/v${version}/CHANGELOG.md"; 35 license = with lib.licenses; [ mit ]; 36 maintainers = with lib.maintainers; [ fab ]; 37 }; 38}