-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
19 deletions.
There are no files selected for viewing
31 changes: 14 additions & 17 deletions
31
pkgs/tools/security/badchars/default.nix → pkgs/by-name/ba/badchars/package.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters