Files
nixpkgs/pkgs/by-name/us/usbrip/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication {
pname = "usbrip";
version = "0-unstable-2021-07-02";
pyproject = true;
disabled = python3.pythonOlder "3.6";
src = fetchFromGitHub {
owner = "snovvcrash";
repo = "usbrip";
rev = "0f3701607ba13212ebefb4bbd9e68ec0e22d76ac";
sha256 = "1vws8ybhv7szpqvlbmv0hrkys2fhhaa5bj9dywv3q2y1xmljl0py";
};
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
termcolor
terminaltables
tqdm
];
postPatch = ''
# Remove install helpers which we don't need
substituteInPlace setup.py \
--replace-fail "resolve('wheel')" "" \
--replace-fail "'install': LocalInstallCommand," ""
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "usbrip" ];
meta = with lib; {
description = "Tool to track the history of USB events";
mainProgram = "usbrip";
homepage = "https://github.com/snovvcrash/usbrip";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}