From 68c4b01f72fc1c473ee8b5b926d54bddcb7d84c3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 9 Dec 2021 21:31:23 +0100 Subject: [PATCH] python3Packages.nmapthon2: init at 0.1.2 --- .../python-modules/nmapthon2/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/nmapthon2/default.nix diff --git a/pkgs/development/python-modules/nmapthon2/default.nix b/pkgs/development/python-modules/nmapthon2/default.nix new file mode 100644 index 000000000000..2567e70b0d67 --- /dev/null +++ b/pkgs/development/python-modules/nmapthon2/default.nix @@ -0,0 +1,34 @@ +{ lib +, appdirs +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "nmapthon2"; + version = "0.1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-6mGMB8nW6CqTPxgc1fveh6fJo/t+jpUS6rJ2VR2gU/g="; + }; + + # Tests are not part of the PyPI source and source is not tagged + # https://github.com/cblopez/nmapthon2/issues/3 + doCheck = false; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a82203e0a84c..3d6fd0ce5685 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5222,6 +5222,8 @@ in { nltk = callPackage ../development/python-modules/nltk { }; + nmapthon2 = callPackage ../development/python-modules/nmapthon2 { }; + nmigen-boards = callPackage ../development/python-modules/nmigen-boards { }; nmigen = callPackage ../development/python-modules/nmigen { };