mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
usbrip: init at unstable-2021-07-02
This commit is contained in:
parent
6aae893f3d
commit
d1bc31b26b
45
pkgs/tools/security/usbrip/default.nix
Normal file
45
pkgs/tools/security/usbrip/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "usbrip";
|
||||
version = "unstable-2021-07-02";
|
||||
|
||||
disabled = python3.pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snovvcrash";
|
||||
repo = pname;
|
||||
rev = "0f3701607ba13212ebefb4bbd9e68ec0e22d76ac";
|
||||
sha256 = "1vws8ybhv7szpqvlbmv0hrkys2fhhaa5bj9dywv3q2y1xmljl0py";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
termcolor
|
||||
terminaltables
|
||||
tqdm
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Remove install helpers which we don't need
|
||||
substituteInPlace setup.py \
|
||||
--replace "parse_requirements('requirements.txt')," "[]," \
|
||||
--replace "resolve('wheel')" "" \
|
||||
--replace "'install': LocalInstallCommand," ""
|
||||
'';
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "usbrip" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to track the history of USB events";
|
||||
homepage = "https://github.com/snovvcrash/usbrip";
|
||||
license = with licenses; [ gpl3Plus ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -19406,6 +19406,8 @@ with pkgs;
|
|||
|
||||
usbredir = callPackage ../development/libraries/usbredir { };
|
||||
|
||||
usbrip = callPackage ../tools/security/usbrip { };
|
||||
|
||||
uthash = callPackage ../development/libraries/uthash { };
|
||||
|
||||
uthenticode = callPackage ../development/libraries/uthenticode { };
|
||||
|
|
Loading…
Reference in a new issue