From 425d6c7cb997563a6f50925f7eeeb4dce5c90de9 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 6 Feb 2021 12:26:18 -0800 Subject: [PATCH] b4: init at 0.6.2 Signed-off-by: William Casarin Reviewed-by: Xinglu Chen Reviewed-by: Matthias Beyer Message-Id: 20210206202618.32583-1-jb55@jb55.com Link: https://lists.sr.ht/~andir/nixpkgs-dev/patches/20096 --- pkgs/development/tools/b4/default.nix | 36 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/tools/b4/default.nix diff --git a/pkgs/development/tools/b4/default.nix b/pkgs/development/tools/b4/default.nix new file mode 100644 index 000000000000..8210f7c409a5 --- /dev/null +++ b/pkgs/development/tools/b4/default.nix @@ -0,0 +1,36 @@ +{ lib, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "b4"; + version = "0.6.2"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "1j904dy9cwxl85k2ngc498q5cdnqwsmw3jibjr1m55w8aqdck68z"; + }; + + preConfigure = '' + substituteInPlace setup.py \ + --replace 'requests~=2.24' 'requests~=2.25' + ''; + + # tests make dns requests and fails + doCheck = false; + + propagatedBuildInputs = with python3Packages; [ + requests + dnspython + dkimpy + + # These may be required in the future for other patch attestation features + #pycryptodomex~=3.9.9 + #PyNaCl + ]; + + meta = with lib; { + homepage = "https://git.kernel.org/pub/scm/utils/b4/b4.git/about"; + license = licenses.gpl2Only; + description = "A helper utility to work with patches made available via a public-inbox archive"; + maintainers = with maintainers; [ jb55 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1bf3fd5e4b93..120b01ec88e0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11687,6 +11687,8 @@ in avrdude = callPackage ../development/tools/misc/avrdude { }; + b4 = callPackage ../development/tools/b4 { }; + babeltrace = callPackage ../development/tools/misc/babeltrace { }; bam = callPackage ../development/tools/build-managers/bam {};