python2Packages.idna: keep 2.10

This commit is contained in:
Frederik Rietdijk 2021-03-24 11:54:25 +01:00
parent 90d59427ed
commit 91516e5e39
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,20 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "idna";
version = "2.10";
src = fetchPypi {
inherit pname version;
sha256 = "b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6";
};
meta = {
homepage = "https://github.com/kjd/idna/";
description = "Internationalized Domain Names in Applications (IDNA)";
license = lib.licenses.bsd3;
};
}

View File

@ -3241,7 +3241,10 @@ in {
identify = callPackage ../development/python-modules/identify { };
idna = callPackage ../development/python-modules/idna { };
idna = if isPy3k then
callPackage ../development/python-modules/idna { }
else
callPackage ../development/python-modules/idna/2.nix { };
idna-ssl = callPackage ../development/python-modules/idna-ssl { };