xortool: modernize (#350995)

This commit is contained in:
Fabian Affolter 2024-10-25 22:51:49 +02:00 committed by GitHub
commit 2b49bf7160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 38 additions and 37 deletions

View File

@ -0,0 +1,38 @@
{
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 ];
};
}

View File

@ -1,35 +0,0 @@
{ lib
, buildPythonApplication
, docopt
, fetchFromGitHub
, importlib-metadata
, poetry-core
}:
buildPythonApplication rec {
pname = "xortool";
version = "1.0.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "hellman";
repo = pname;
rev = "v${version}";
sha256 = "19lfadi28r89bl5q8fhrxgjgs3nx3kgjd4rdg7wbvzi1cn29c5n7";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ 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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -38094,8 +38094,6 @@ with pkgs;
xboxdrv = callPackage ../misc/drivers/xboxdrv { };
xortool = python3Packages.callPackage ../tools/security/xortool { };
xorex = callPackage ../tools/security/xorex { };
xbps = callPackage ../tools/package-management/xbps { };