Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / python-nmap / default.nix
blob745d6c67eac7f082cf23689ab70d22384c622460
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , nmap
5 }:
7 buildPythonPackage rec {
8   pname = "python-nmap";
9   version = "0.6.4";
11   src = fetchPypi {
12     inherit pname version;
13     sha256 = "013q2797d9sf6mrj7x1hqfcql5gqgg50zgiifp2yypfa4k8cwjsx";
14   };
16   propagatedBuildInputs = [ nmap ];
18   postPatch = ''
19     substituteInPlace setup.cfg --replace "universal=3" "universal=1"
20   '';
22   # Tests requires sudo and performs scans
23   doCheck = false;
24   pythonImportsCheck = [ "nmap" ];
26   meta = with lib; {
27     description = "Python library which helps in using nmap";
28     longDescription = ''
29       python-nmap is a Python library which helps in using nmap port scanner. It
30       allows to easily manipulate nmap scan results and will be a perfect tool
31       for systems administrators who want to automatize scanning task and reports.
32       It also supports nmap script outputs.
33     '';
34     homepage = "http://xael.org/pages/python-nmap-en.html";
35     license = with licenses; [ gpl3Plus ];
36     maintainers = with maintainers; [ fab ];
37   };