10 buildPythonPackage rec {
13 format = "setuptools";
15 src = fetchFromGitHub {
16 owner = "home-assistant-libs";
19 sha256 = "1a44zz9zsxy48ahlpjjrddpyfi7cnfknicfcp35hi588qm430mag";
24 src = ./nmap-path.patch;
25 nmap = "${lib.getBin nmap}/bin/nmap";
29 # upstream tests require sudo
30 # make sure nmap is found instead
33 ${python.interpreter} -c 'import nmap; nmap.PortScanner()'
37 pythonImportsCheck = [ "nmap" ];
40 description = "Python class to use nmap and access scan results from python3";
41 homepage = "https://github.com/home-assistant-libs/python-nmap";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ dotlambda ];