about summary refs log tree commit diff
path: root/pkgs/development/python-modules/defang/default.nix
blob: d51573c0dc4ff3131913b8d7a76c2800b4f494cb (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
37
38
39
40
41
{ 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 ];
  };
}