blob: 0bb3d89e63e05dcb6349b6dedc2124db6207350a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{
lib,
buildPythonPackage,
fetchFromBitbucket,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "defang";
version = "0.5.3";
pyproject = true;
src = fetchFromBitbucket {
owner = "johannestaas";
repo = "defang";
tag = version;
hash = "sha256-OJfayJeVf2H1/jg7/fu2NiHhRHNCaLGI29SY8BnJyxI=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "defang" ];
meta = {
description = "Module to defang and refang malicious URLs";
homepage = "https://bitbucket.org/johannestaas/defang";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ fab ];
};
}
|