Merge pull request #156024 from fabaff/bump-nmapthon2
This commit is contained in:
commit
2199181d54
@ -1,25 +1,32 @@
|
||||
{ lib
|
||||
, appdirs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nmapthon2";
|
||||
version = "0.1.2";
|
||||
version = "0.1.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-6mGMB8nW6CqTPxgc1fveh6fJo/t+jpUS6rJ2VR2gU/g=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "cblopez";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-t4gAcDwHHejfipQmJvMLhKmdz8D6UN/Mmsrhpq0cygY=";
|
||||
};
|
||||
|
||||
# Tests are not part of the PyPI source and source is not tagged
|
||||
# https://github.com/cblopez/nmapthon2/issues/3
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests/scanner_tests.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"nmapthon2"
|
||||
|
Loading…
Reference in New Issue
Block a user