git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #127453 from dotlambda/certifi-python2
e75cc16adisbladis
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; {
46
46
47 cdecimal = callPackage ../development/python-modules/cdecimal { };
47 cdecimal = callPackage ../development/python-modules/cdecimal { };
48
48
49+ certifi = callPackage ../development/python-modules/certifi/python2.nix { };
50+
49 chardet = callPackage ../development/python-modules/chardet/2.nix { };
51 chardet = callPackage ../development/python-modules/chardet/2.nix { };
50
52
51 cheetah = callPackage ../development/python-modules/cheetah { };
53 cheetah = callPackage ../development/python-modules/cheetah { };