mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-15 20:40:32 +08:00
38 lines
807 B
Nix
38 lines
807 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
simplejson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python3-nmap";
|
|
version = "1.9.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nmmapper";
|
|
repo = "python3-nmap";
|
|
tag = version;
|
|
hash = "sha256-d/rH3aRNh9SDyVvbiTFCQyfZ6amtnH2iSwKqTOlVLNY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ simplejson ];
|
|
|
|
pythonImportsCheck = [ "nmap3" ];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Library which helps in using nmap port scanner";
|
|
homepage = "https://github.com/nmmapper/python3-nmap";
|
|
changelog = "https://github.com/nmmapper/python3-nmap/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|