From 834ff9a60412f510b755ce97dd7ff0678c4399fe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 Dec 2021 16:51:21 +0100 Subject: [PATCH 1/3] python3Packages.fastcore: init at 1.3.27 --- .../python-modules/fastcore/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/fastcore/default.nix diff --git a/pkgs/development/python-modules/fastcore/default.nix b/pkgs/development/python-modules/fastcore/default.nix new file mode 100644 index 000000000000..4783b8d33c78 --- /dev/null +++ b/pkgs/development/python-modules/fastcore/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, packaging +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "fastcore"; + version = "1.3.27"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "fastai"; + repo = pname; + rev = version; + sha256 = "sha256-ogCNDh18FHP9KY0q0BIbsjPH5vGGioGh4FFUUb3c3Jc="; + }; + + propagatedBuildInputs = [ + packaging + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "fastcore" + ]; + + meta = with lib; { + description = "Python module for Fast AI"; + homepage = "https://github.com/fastai/fastcore"; + 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 679625d51a6c..0c29df70d3da 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2680,6 +2680,8 @@ in { fastcache = callPackage ../development/python-modules/fastcache { }; + fastcore = callPackage ../development/python-modules/fastcore { }; + fastdiff = callPackage ../development/python-modules/fastdiff { }; fastdtw = callPackage ../development/python-modules/fastdtw { }; From 16c153f7d79f682cb278a3b89be2a739bb274f66 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 Dec 2021 16:55:11 +0100 Subject: [PATCH 2/3] python3Packages.ghapi: init at 0.1.19 --- .../python-modules/ghapi/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/ghapi/default.nix diff --git a/pkgs/development/python-modules/ghapi/default.nix b/pkgs/development/python-modules/ghapi/default.nix new file mode 100644 index 000000000000..428215eeee59 --- /dev/null +++ b/pkgs/development/python-modules/ghapi/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, fastcore +, packaging +, pythonOlder +}: + +buildPythonPackage rec { + pname = "ghapi"; + version = "0.1.19"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "fastai"; + repo = "ghapi"; + rev = version; + sha256 = "sha256-UV2cfotRad9jg/X3pOysKJyMi4/XKt24kf6F4aw4vcI="; + }; + + propagatedBuildInputs = [ + fastcore + packaging + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "ghapi" + ]; + + meta = with lib; { + description = "Python interface to GitHub's API"; + homepage = "https://github.com/fastai/ghapi"; + 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 0c29df70d3da..b56c7119a310 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3146,6 +3146,8 @@ in { gflags = callPackage ../development/python-modules/gflags { }; + ghapi = callPackage ../development/python-modules/ghapi { }; + ghdiff = callPackage ../development/python-modules/ghdiff { }; ghp-import = callPackage ../development/python-modules/ghp-import { }; From 91f4e98e28303418902b20331a6bd8aebf58bdff Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 15 Dec 2021 12:42:08 +0100 Subject: [PATCH 3/3] ghdorker: init at 0.3.2 --- pkgs/tools/security/ghdorker/default.nix | 35 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/security/ghdorker/default.nix diff --git a/pkgs/tools/security/ghdorker/default.nix b/pkgs/tools/security/ghdorker/default.nix new file mode 100644 index 000000000000..c6882fb110a8 --- /dev/null +++ b/pkgs/tools/security/ghdorker/default.nix @@ -0,0 +1,35 @@ +{ lib +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "ghdorker"; + version = "0.3.2"; + format = "setuptools"; + + src = python3.pkgs.fetchPypi { + inherit pname version; + sha256 = "sha256-wF4QoXxH55SpdYgKLHf4sCwUk1rkCpSdnIX5FvFi/BU="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + ghapi + glom + python-dotenv + pyyaml + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "GHDorker" + ]; + + meta = with lib; { + description = "Extensible GitHub dorking tool"; + homepage = "https://github.com/dtaivpp/ghdorker"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 884890c46ac9..828d4f53b755 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3080,6 +3080,8 @@ with pkgs; gh-ost = callPackage ../tools/misc/gh-ost { }; + ghdorker = callPackage ../tools/security/ghdorker { }; + ghidra-bin = callPackage ../tools/security/ghidra { }; gif-for-cli = callPackage ../tools/misc/gif-for-cli { };