uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/development/python-modules/python-nmap/default.nix
Normal file
44
pkgs/development/python-modules/python-nmap/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nmap
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-nmap";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-91r2uR3Y47DDH4adsyFj9iraaGlF5bfCX4S8D3+tO2Q=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
nmap
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "universal=3" "universal=1"
|
||||
'';
|
||||
|
||||
# Tests requires sudo and performs scans
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"nmap"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library which helps in using nmap";
|
||||
longDescription = ''
|
||||
python-nmap is a Python library which helps in using nmap port scanner. It
|
||||
allows to easily manipulate nmap scan results and will be a perfect tool
|
||||
for systems administrators who want to automatize scanning task and reports.
|
||||
It also supports nmap script outputs.
|
||||
'';
|
||||
homepage = "http://xael.org/pages/python-nmap-en.html";
|
||||
license = with licenses; [ gpl3Plus ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue