···11+{ lib
22+, buildPythonApplication
33+, fetchPypi
44+}:
55+66+buildPythonApplication rec {
77+ pname = "badchars";
88+ version = "0.4.0";
99+1010+ src = fetchPypi {
1111+ inherit pname version;
1212+ sha256 = "1xqki8qnfwl97d60xj69alyzwa1mnfbwki25j0vhvhb05varaxz2";
1313+ };
1414+1515+ postPatch = ''
1616+ substituteInPlace setup.py --replace "argparse" ""
1717+ '';
1818+1919+ # no tests are available and it can't be imported (it's only a script, not a module)
2020+ doCheck = false;
2121+2222+ meta = with lib; {
2323+ description = "HEX badchar generator for different programming languages";
2424+ longDescription = ''
2525+ A HEX bad char generator to instruct encoders such as shikata-ga-nai to
2626+ transform those to other chars.
2727+ '';
2828+ homepage = "https://github.com/cytopia/badchars";
2929+ license = with licenses; [ mit ];
3030+ maintainers = with maintainers; [ fab ];
3131+ };
3232+}