Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, nmap 5}: 6 7buildPythonPackage rec { 8 pname = "python-nmap"; 9 version = "0.6.4"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "013q2797d9sf6mrj7x1hqfcql5gqgg50zgiifp2yypfa4k8cwjsx"; 14 }; 15 16 propagatedBuildInputs = [ nmap ]; 17 18 postPatch = '' 19 substituteInPlace setup.cfg --replace "universal=3" "universal=1" 20 ''; 21 22 # Tests requires sudo and performs scans 23 doCheck = false; 24 pythonImportsCheck = [ "nmap" ]; 25 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 }; 38}