Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, setuptools, click,}:
let libName = "confusable-homoglyphs"; snakeLibName = builtins.replaceStrings [ "-" ] [ "_" ] libName;inbuildPythonPackage rec { pname = libName; version = "3.3.1"; pyproject = true;
src = fetchPypi { inherit version; pname = snakeLibName; hash = "sha256-uZUAHJsuG0zqDPXzhAp8eRiKjLutBT1pNXK9jBwexGA="; };
build-system = [ setuptools ];
disabled = pythonOlder "3.7";
optional-dependencies = { cli = [ click ]; };
pythonImportsCheck = [ snakeLibName ];
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.cli;
disabledTests = [ "test_generate_categories" # touches network "test_generate_confusables" # touches network ];
meta = let inherit (lib) licenses maintainers; in { description = "Detect confusable usage of unicode homoglyphs, prevent homograph attacks"; homepage = "https://sr.ht/~valhalla/confusable_homoglyphs/"; changelog = "https://confusable-homoglyphs.readthedocs.io/en/latest/history.html"; license = licenses.mit; maintainers = with maintainers; [ ajaxbits ]; };}