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