Unverified Commit 0a85603e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

badchars: 0.4.0 -> 0.5.0 (#371253)

parents 09eed565 9b4fbc7a
Loading
Loading
Loading
Loading
+14 −17
Original line number Diff line number Diff line
{
  lib,
  buildPythonApplication,
  fetchPypi,
  fetchFromGitHub,
  gitUpdater,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "badchars";
  version = "0.4.0";
  version = "0.5.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-4neV1S5gwQ03kEXEyZezNSj+PVXJyA5MO4lyZzGKE/c=";
  src = fetchFromGitHub {
    owner = "cytopia";
    repo = "badchars";
    tag = version;
    hash = "sha256-VWe3k34snEviBK7VBCDTWAu3YjZfh1gXHXjlnFlefJw=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "argparse" ""
  '';

  build-system = with python3.pkgs; [
    setuptools
  ];
  build-system = with python3.pkgs; [ setuptools ];

  # no tests are available and it can't be imported (it's only a script, not a module)
  doCheck = false;

  meta = with lib; {
  passthru.updateScript = gitUpdater { };

  meta = {
    description = "HEX badchar generator for different programming languages";
    longDescription = ''
      A HEX bad char generator to instruct encoders such as shikata-ga-nai to
@@ -35,8 +32,8 @@ python3.pkgs.buildPythonApplication rec {
    '';
    homepage = "https://github.com/cytopia/badchars";
    changelog = "https://github.com/cytopia/badchars/releases/tag/${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "badchars";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -1954,8 +1954,6 @@ with pkgs;
  babelfish = callPackage ../shells/fish/babelfish.nix { };
  badchars = python3Packages.callPackage ../tools/security/badchars { };
  bat-extras = recurseIntoAttrs (callPackages ../tools/misc/bat-extras { });
  beauty-line-icon-theme = callPackage ../data/icons/beauty-line-icon-theme {