diff options
| author | Robert Schütz <dev@schuetz-co.de> | 2021-06-19 11:03:32 +0200 |
|---|---|---|
| committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-07-05 21:27:18 -0700 |
| commit | d3ebf03151a2857272006b54ba5f4b88e3354f02 (patch) | |
| tree | 5f1d27f673948a031e57a05e84ee7c72daf19075 | |
| parent | linux_xanmod: 5.12.12 -> 5.12.13 (diff) | |
| download | nixpkgs-d3ebf03151a2857272006b54ba5f4b88e3354f02.tar.gz | |
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)
| -rw-r--r-- | pkgs/development/python-modules/certifi/python2.nix | 34 | ||||
| -rw-r--r-- | pkgs/top-level/python2-packages.nix | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/certifi/python2.nix b/pkgs/development/python-modules/certifi/python2.nix new file mode 100644 index 000000000000..adc9594d69d0 --- /dev/null +++ b/pkgs/development/python-modules/certifi/python2.nix @@ -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 + }; +} diff --git a/pkgs/top-level/python2-packages.nix b/pkgs/top-level/python2-packages.nix index 221da6daa9aa..2388e1cc9a83 100644 --- a/pkgs/top-level/python2-packages.nix +++ b/pkgs/top-level/python2-packages.nix @@ -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 { }; |
