depot/pkgs/by-name/xo/xortool/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
851 B
Nix

{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "xortool";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "hellman";
repo = "xortool";
rev = "refs/tags/v${version}";
hash = "sha256-xxaWhGUh/r34eS2TJt8c3Q795OsZOoQLXQllJGJTjqY=";
};
build-system = with python3Packages; [ poetry-core ];
dependencies = with python3Packages; [
docopt
importlib-metadata
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "xortool" ];
meta = with lib; {
description = "Tool to analyze multi-byte XOR cipher";
homepage = "https://github.com/hellman/xortool";
changelog = "https://github.com/hellman/xortool/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}