From 6faef4ab0dcbff24b785bf93b326627787301dee Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 20 Jan 2021 08:52:24 +0100 Subject: [PATCH] xortool: init at 1.0.0 --- pkgs/tools/security/xortool/default.nix | 35 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/security/xortool/default.nix diff --git a/pkgs/tools/security/xortool/default.nix b/pkgs/tools/security/xortool/default.nix new file mode 100644 index 00000000000..1e8b6aee5d3 --- /dev/null +++ b/pkgs/tools/security/xortool/default.nix @@ -0,0 +1,35 @@ +{ 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 393bb16da56..d69bea60694 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29245,6 +29245,8 @@ in xboxdrv = callPackage ../misc/drivers/xboxdrv { }; + xortool = python3Packages.callPackage ../tools/security/xortool { }; + xow = callPackage ../misc/drivers/xow { }; xbps = callPackage ../tools/package-management/xbps { };