10 buildPythonPackage rec {
15 disabled = pythonOlder "3.8";
17 src = fetchFromBitbucket {
18 owner = "johannestaas";
20 rev = "refs/tags/${version}";
21 hash = "sha256-OJfayJeVf2H1/jg7/fu2NiHhRHNCaLGI29SY8BnJyxI=";
24 nativeBuildInputs = [ setuptools ];
26 nativeCheckInputs = [ pytestCheckHook ];
28 pythonImportsCheck = [ "defang" ];
31 description = "Module to defang and refang malicious URLs";
32 homepage = "https://bitbucket.org/johannestaas/defang";
33 license = licenses.gpl2Only;
34 maintainers = with maintainers; [ fab ];