Commit 7960509e authored by Fabian Affolter's avatar Fabian Affolter
Browse files

xortool: modernize

parent 1e687cd8
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{ lib
, buildPythonApplication
, docopt
, fetchFromGitHub
, importlib-metadata
, poetry-core
{
  lib,
  fetchFromGitHub,
  python3Packages,
}:

buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "xortool";
  version = "1.0.0";
  format = "pyproject";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hellman";
    repo = pname;
    rev = "v${version}";
    sha256 = "19lfadi28r89bl5q8fhrxgjgs3nx3kgjd4rdg7wbvzi1cn29c5n7";
    repo = "xortool";
    rev = "refs/tags/v${version}";
    hash = "sha256-xxaWhGUh/r34eS2TJt8c3Q795OsZOoQLXQllJGJTjqY=";
  };

  nativeBuildInputs = [ poetry-core ];
  build-system = with python3Packages; [ poetry-core ];

  propagatedBuildInputs = [ docopt importlib-metadata ];
  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";
    license = with licenses; [ mit ];
    changelog = "https://github.com/hellman/xortool/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -38105,8 +38105,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 { };