Files
nixpkgs/pkgs/development/python-modules/defang/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
758 B
Nix

{
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 = {
description = "Module to defang and refang malicious URLs";
homepage = "https://bitbucket.org/johannestaas/defang";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ fab ];
};
}