diff --git a/pkgs/by-name/xo/xortool/package.nix b/pkgs/by-name/xo/xortool/package.nix new file mode 100644 index 000000000000..a59eb77d8cf2 --- /dev/null +++ b/pkgs/by-name/xo/xortool/package.nix @@ -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 ]; + }; +} diff --git a/pkgs/tools/security/xortool/default.nix b/pkgs/tools/security/xortool/default.nix deleted file mode 100644 index 1e8b6aee5d37..000000000000 --- a/pkgs/tools/security/xortool/default.nix +++ /dev/null @@ -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 ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2a0a63ef9a30..e5c2dfca5060 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };