git.iko.soy/typeable/nixpkgs
on master help sign in
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>

commitada27b88e23eef9d59f52a30abea0ea02523a3f8 authorRobert Schütz <dev@schuetz-co.de> dateSat 19 Jun 2021, 11:03 (5 years ago) parent43b2573
2 files changed+36
pkgs/development/python-modules/certifi/python2.nix+34 pkgs/top-level/python2-packages.nix+2
pkgs/development/python-modules/certifi/python2.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib
2+, fetchPypi
3+, buildPythonPackage
4+, python3
5+}:
6+
7+let
8+ inherit (python3.pkgs) certifi;
9+
10+in buildPythonPackage rec {
11+ pname = "certifi";
12+ version = "2019.11.28";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "25b64c7da4cd7479594d035c08c2d809eb4aab3a26e5a990ea98cc450c320f1f";
17+ };
18+
19+ postPatch = ''
20+ cp ${certifi.src}/certifi/cacert.pem certifi/cacert.pem
21+ '';
22+
23+ pythonImportsCheck = [ "certifi" ];
24+
25+ # no tests implemented
26+ doCheck = false;
27+
28+ meta = with lib; {
29+ homepage = "https://certifi.io/";
30+ description = "Python package for providing Mozilla's CA Bundle";
31+ license = licenses.isc;
32+ maintainers = with maintainers; [ ]; # NixOps team
33+ };
34+}
pkgs/top-level/python2-packages.nix+2
@@ -46,6 +46,8 @@ with self; with super; {
4646
4747 cdecimal = callPackage ../development/python-modules/cdecimal { };
4848
49+ certifi = callPackage ../development/python-modules/certifi/python2.nix { };
50+
4951 chardet = callPackage ../development/python-modules/chardet/2.nix { };
5052
5153 cheetah = callPackage ../development/python-modules/cheetah { };