mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
42 lines
759 B
Nix
42 lines
759 B
Nix
{ lib
|
|
, appdirs
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nmapthon2";
|
|
version = "0.1.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cblopez";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-4Na75TdKDywUomJF4tDWUWwCCtcOSxBUMOF7+FDhbpY=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests/scanner_tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"nmapthon2"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to automate nmap";
|
|
homepage = "https://github.com/cblopez/nmapthon2";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|