python2Packages.certifi: init at 2019.11.28

We use the sources from 2019.11.28 to build, but inherit the cert bundle
from the maintained Python3-only version of certifi.

Co-authored-by: adisbladis <adisbladis@gmail.com>
(cherry picked from commit ada27b88e23eef9d59f52a30abea0ea02523a3f8)
This commit is contained in:
Robert Schütz
2021-06-19 11:03:32 +02:00
committed by Jonathan Ringer
parent 3cd12115c5
commit d3ebf03151
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{ lib
, fetchPypi
, buildPythonPackage
, python3
}:
let
inherit (python3.pkgs) certifi;
in buildPythonPackage rec {
pname = "certifi";
version = "2019.11.28";
src = fetchPypi {
inherit pname version;
sha256 = "25b64c7da4cd7479594d035c08c2d809eb4aab3a26e5a990ea98cc450c320f1f";
};
postPatch = ''
cp ${certifi.src}/certifi/cacert.pem certifi/cacert.pem
'';
pythonImportsCheck = [ "certifi" ];
# no tests implemented
doCheck = false;
meta = with lib; {
homepage = "https://certifi.io/";
description = "Python package for providing Mozilla's CA Bundle";
license = licenses.isc;
maintainers = with maintainers; [ ]; # NixOps team
};
}