From 6b9f12f113a4a5e86dc63fa9e1055e00cafbe18b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 3 Jul 2021 18:33:04 +0200 Subject: [PATCH] python3Packages.gibberish-detector: init at 0.1.1 --- .../gibberish-detector/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/gibberish-detector/default.nix diff --git a/pkgs/development/python-modules/gibberish-detector/default.nix b/pkgs/development/python-modules/gibberish-detector/default.nix new file mode 100644 index 000000000000..df3b70c000d7 --- /dev/null +++ b/pkgs/development/python-modules/gibberish-detector/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, isPy27 +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "gibberish-detector"; + version = "0.1.1"; + disabled = isPy27; + + src = fetchFromGitHub { + owner = "domanchi"; + repo = pname; + rev = "v${version}"; + sha256 = "1si0fkpnk9vjkwl31sq5jkyv3rz8a5f2nh3xq7591j9wv2b6dn0b"; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "gibberish_detector" ]; + + meta = with lib; { + description = "Python module to detect gibberish strings"; + homepage = "https://github.com/domanchi/gibberish-detector"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f9cb868165be..4251e1945003 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5047,6 +5047,8 @@ in ghr = callPackage ../applications/version-management/git-and-tools/ghr { }; + gibberish-detector = with python3Packages; toPythonApplication gibberish-detector; + gibo = callPackage ../tools/misc/gibo { }; gifsicle = callPackage ../tools/graphics/gifsicle { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5eac97ab1891..48e680542407 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2866,6 +2866,8 @@ in { ghp-import = callPackage ../development/python-modules/ghp-import { }; + gibberish-detector = callPackage ../development/python-modules/gibberish-detector { }; + gidgethub = callPackage ../development/python-modules/gidgethub { }; gin-config = callPackage ../development/python-modules/gin-config { };