diff options
author | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-05-14 18:10:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 18:10:07 -0500 |
commit | e5274eb60edb3ce48bac31a20b3c8ebf82158d0f (patch) | |
tree | 2365bb6800c9c1d5d8e2d150cb9216060cbef6d2 /pkgs | |
parent | 8dfecefd9720252fabb1d9c1665159b38b46fd63 (diff) | |
parent | 3fc1694e8ae7fe148288e9e0a0f3e47008fdd580 (diff) | |
download | nixlib-e5274eb60edb3ce48bac31a20b3c8ebf82158d0f.tar nixlib-e5274eb60edb3ce48bac31a20b3c8ebf82158d0f.tar.gz nixlib-e5274eb60edb3ce48bac31a20b3c8ebf82158d0f.tar.bz2 nixlib-e5274eb60edb3ce48bac31a20b3c8ebf82158d0f.tar.lz nixlib-e5274eb60edb3ce48bac31a20b3c8ebf82158d0f.tar.xz nixlib-e5274eb60edb3ce48bac31a20b3c8ebf82158d0f.tar.zst nixlib-e5274eb60edb3ce48bac31a20b3c8ebf82158d0f.zip |
Merge pull request #40391 from bhipple/truffleHog-gitpython-gitdb2-smmap2
truffleHog: init at 2.0.91
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/GitPython/default.nix | 24 | ||||
-rw-r--r-- | pkgs/development/python-modules/gitdb/default.nix | 23 | ||||
-rw-r--r-- | pkgs/development/python-modules/gitdb2/default.nix | 23 | ||||
-rw-r--r-- | pkgs/development/python-modules/smmap/default.nix | 19 | ||||
-rw-r--r-- | pkgs/development/python-modules/smmap2/default.nix | 20 | ||||
-rw-r--r-- | pkgs/tools/security/trufflehog/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 64 |
8 files changed, 154 insertions, 59 deletions
diff --git a/pkgs/development/python-modules/GitPython/default.nix b/pkgs/development/python-modules/GitPython/default.nix new file mode 100644 index 000000000000..c2f3706923a3 --- /dev/null +++ b/pkgs/development/python-modules/GitPython/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchPypi, gitdb2, mock, nose, ddt }: + +buildPythonPackage rec { + version = "2.1.9"; + pname = "GitPython"; + + src = fetchPypi { + inherit pname version; + sha256 = "0a9in1jfv9ssxhckl6sasw45bhm762y2r5ikgb2pk2g8yqdc6z64"; + }; + + checkInputs = [ mock nose ddt ]; + propagatedBuildInputs = [ gitdb2 ]; + + # Tests require a git repo + doCheck = false; + + meta = { + description = "Python Git Library"; + maintainers = [ ]; + homepage = https://github.com/gitpython-developers/GitPython; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/development/python-modules/gitdb/default.nix b/pkgs/development/python-modules/gitdb/default.nix new file mode 100644 index 000000000000..ceca6e3719b4 --- /dev/null +++ b/pkgs/development/python-modules/gitdb/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchPypi, smmap }: + +buildPythonPackage rec { + pname = "gitdb"; + version = "0.6.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0n4n2c7rxph9vs2l6xlafyda5x1mdr8xy16r9s3jwnh3pqkvrsx3"; + }; + + propagatedBuildInputs = [ smmap ]; + + # Bunch of tests fail because they need an actual git repo + doCheck = false; + + meta = { + description = "Git Object Database"; + maintainers = [ ]; + homepage = https://github.com/gitpython-developers/gitdb; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/development/python-modules/gitdb2/default.nix b/pkgs/development/python-modules/gitdb2/default.nix new file mode 100644 index 000000000000..1ebbd3de7850 --- /dev/null +++ b/pkgs/development/python-modules/gitdb2/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchPypi, smmap2 }: + +buildPythonPackage rec { + pname = "gitdb2"; + version = "2.0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "02azg62mr99b7cllyjrly77np3vw32y8nrxpa2xjapiyaga2j3mn"; + }; + + propagatedBuildInputs = [ smmap2 ]; + + # Bunch of tests fail because they need an actual git repo + doCheck = false; + + meta = { + description = "Git Object Database"; + maintainers = [ ]; + homepage = https://github.com/gitpython-developers/gitdb; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/development/python-modules/smmap/default.nix b/pkgs/development/python-modules/smmap/default.nix new file mode 100644 index 000000000000..366897d3e198 --- /dev/null +++ b/pkgs/development/python-modules/smmap/default.nix @@ -0,0 +1,19 @@ +{ lib, fetchPypi, buildPythonPackage, nosexcover }: + +buildPythonPackage rec { + pname = "smmap"; + version = "0.9.0"; + src = fetchPypi { + inherit pname version; + sha256 = "0qlx25f6n2n9ff37w9gg62f217fzj16xlbh0pkz0lpxxjys64aqf"; + }; + + checkInputs = [ nosexcover ]; + + meta = { + description = "A pure python implementation of a sliding window memory map manager"; + homepage = https://github.com/gitpython-developers/smmap; + maintainers = [ ]; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/development/python-modules/smmap2/default.nix b/pkgs/development/python-modules/smmap2/default.nix new file mode 100644 index 000000000000..ea0f0859bbd2 --- /dev/null +++ b/pkgs/development/python-modules/smmap2/default.nix @@ -0,0 +1,20 @@ +{ lib, fetchPypi, buildPythonPackage, nosexcover }: + +buildPythonPackage rec { + pname = "smmap2"; + version = "2.0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1hvn28p3zvxa98sbi9lrqvv2ps4q284j4jq9a619zw0m7yv0sly7"; + }; + + checkInputs = [ nosexcover ]; + + meta = { + description = "A pure python implementation of a sliding window memory map manager"; + homepage = https://pypi.org/project/smmap2; + maintainers = [ ]; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/tools/security/trufflehog/default.nix b/pkgs/tools/security/trufflehog/default.nix new file mode 100644 index 000000000000..f805670a5d5e --- /dev/null +++ b/pkgs/tools/security/trufflehog/default.nix @@ -0,0 +1,38 @@ +{ lib, pythonPackages }: + +let + truffleHogRegexes = pythonPackages.buildPythonPackage rec { + pname = "truffleHogRegexes"; + version = "0.0.4"; + src = pythonPackages.fetchPypi { + inherit pname version; + sha256 = "09vrscbb4h4w01gmamlzghxx6cvrqdscylrbdcnbjsd05xl7zh4z"; + }; + }; +in + pythonPackages.buildPythonApplication rec { + pname = "truffleHog"; + version = "2.0.91"; + + src = pythonPackages.fetchPypi { + inherit pname version; + sha256 = "0r4c9ihy6wjh5cwli7lb6cr2yfvxrh7r6cgznql1src5gzlnkymx"; + }; + + # Relax overly restricted version constraint + postPatch = '' + substituteInPlace setup.py --replace "GitPython ==" "GitPython >= " + ''; + + propagatedBuildInputs = [ pythonPackages.GitPython truffleHogRegexes ]; + + # Test cases run git clone and require network access + doCheck = false; + + meta = { + homepage = https://github.com/dxa4481/truffleHog; + description = "Searches through git repositories for high entropy strings and secrets, digging deep into commit history"; + license = with lib.licenses; [ gpl2 ]; + maintainers = with lib.maintainers; [ bhipple ]; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db5499505030..7f5493db14f2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21124,6 +21124,8 @@ with pkgs; tup = callPackage ../development/tools/build-managers/tup { }; + trufflehog = callPackage ../tools/security/trufflehog { }; + tvheadend = callPackage ../servers/tvheadend { }; ums = callPackage ../servers/ums { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 51553ea0e56e..ddbf336eb08e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2820,56 +2820,11 @@ in { gpy = callPackage ../development/python-modules/gpy { }; - gitdb = buildPythonPackage rec { - name = "gitdb-0.6.4"; + gitdb = callPackage ../development/python-modules/gitdb { }; - src = pkgs.fetchurl { - url = "mirror://pypi/g/gitdb/${name}.tar.gz"; - sha256 = "0n4n2c7rxph9vs2l6xlafyda5x1mdr8xy16r9s3jwnh3pqkvrsx3"; - }; - - buildInputs = with self; [ nose ]; - propagatedBuildInputs = with self; [ smmap ]; - - checkPhase = '' - nosetests - ''; - - doCheck = false; # Bunch of tests fail because they need an actual git repo + gitdb2 = callPackage ../development/python-modules/gitdb2 { }; - meta = { - description = "Git Object Database"; - maintainers = with maintainers; [ ]; - homepage = https://github.com/gitpython-developers/gitdb; - license = licenses.bsd3; - }; - - }; - - GitPython = buildPythonPackage rec { - version = "2.0.8"; - name = "GitPython-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/G/GitPython/GitPython-${version}.tar.gz"; - sha256 = "7c03d1130f903aafba6ae5b89ccf8eb433a995cd3120cbb781370e53fc4eb222"; - }; - - buildInputs = with self; [ mock nose ]; - propagatedBuildInputs = with self; [ gitdb ]; - - # All tests error with - # InvalidGitRepositoryError: /tmp/nix-build-python2.7-GitPython-1.0.1.drv-0/GitPython-1.0.1 - # Maybe due to being in a chroot? - doCheck = false; - - meta = { - description = "Python Git Library"; - maintainers = with maintainers; [ ]; - homepage = https://github.com/gitpython-developers/GitPython; - license = licenses.bsd3; - }; - }; + GitPython = callPackage ../development/python-modules/GitPython { }; git-annex-adapter = callPackage ../development/python-modules/git-annex-adapter { inherit (pkgs.gitAndTools) git-annex; @@ -14224,18 +14179,9 @@ in { tqdm = callPackage ../development/python-modules/tqdm { }; - smmap = buildPythonPackage rec { - name = "smmap-0.9.0"; - disabled = isPyPy; # This fails the tests if built with pypy - meta.maintainers = with maintainers; [ ]; - - buildInputs = with self; [ nosexcover ]; + smmap = callPackage ../development/python-modules/smmap { }; - src = pkgs.fetchurl { - url = "mirror://pypi/s/smmap/${name}.tar.gz"; - sha256 = "0qlx25f6n2n9ff37w9gg62f217fzj16xlbh0pkz0lpxxjys64aqf"; - }; - }; + smmap2 = callPackage ../development/python-modules/smmap2 { }; traits = buildPythonPackage rec { name = "traits-${version}"; |