blob: ea9bfe22478c906bc3f461418640b5ec62154f66 (
plain) (
blame)
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
34
35
36
|
{
lib,
buildPythonPackage,
fetchFromBitbucket,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "defang";
version = "0.5.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromBitbucket {
owner = "johannestaas";
repo = "defang";
rev = "refs/tags/${version}";
hash = "sha256-OJfayJeVf2H1/jg7/fu2NiHhRHNCaLGI29SY8BnJyxI=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "defang" ];
meta = with lib; {
description = "Module to defang and refang malicious URLs";
homepage = "https://bitbucket.org/johannestaas/defang";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}
|