mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
34 lines
851 B
Nix
34 lines
851 B
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchPypi
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "badchars";
|
|
version = "0.4.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1xqki8qnfwl97d60xj69alyzwa1mnfbwki25j0vhvhb05varaxz2";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "argparse" ""
|
|
'';
|
|
|
|
# no tests are available and it can't be imported (it's only a script, not a module)
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "HEX badchar generator for different programming languages";
|
|
mainProgram = "badchars";
|
|
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";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|