Skip to content

Commit

Permalink
badchars: 0.4.0 -> 0.5.0 (#371253)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Jan 11, 2025
2 parents 09eed56 + 9b4fbc7 commit 0a85603
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,42 +1,39 @@
{
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
transform those to other chars.
'';
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";
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0a85603

Please sign in to comment.