Merge pull request #127453 from dotlambda/certifi-python2
python2Packages.certifi: init at 2019.11.28
This commit is contained in:
commit
e75cc16644
34
pkgs/development/python-modules/certifi/python2.nix
Normal file
34
pkgs/development/python-modules/certifi/python2.nix
Normal 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
|
||||
};
|
||||
}
|
@ -46,6 +46,8 @@ with self; with super; {
|
||||
|
||||
cdecimal = callPackage ../development/python-modules/cdecimal { };
|
||||
|
||||
certifi = callPackage ../development/python-modules/certifi/python2.nix { };
|
||||
|
||||
chardet = callPackage ../development/python-modules/chardet/2.nix { };
|
||||
|
||||
cheetah = callPackage ../development/python-modules/cheetah { };
|
||||
|
Loading…
Reference in New Issue
Block a user