Merge pull request #156024 from fabaff/bump-nmapthon2

This commit is contained in:
Sandro 2022-01-23 06:08:24 +01:00 committed by GitHub
commit 2199181d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"