lol

python3Packages.publicsuffix2: restore original version number (#231610)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by

Ryan Hendrickson
Sandro
and committed by
GitHub
3fedce78 7e0743a5

+8 -4
+8 -4
pkgs/development/python-modules/publicsuffix2/default.nix
··· 1 1 { lib, buildPythonPackage, fetchFromGitHub }: 2 - 3 - buildPythonPackage rec { 2 + let 3 + tagVersion = "2.2019-12-21"; 4 + in 5 + buildPythonPackage { 4 6 pname = "publicsuffix2"; 5 - version = "2.2019-12-21"; 7 + # tags have dashes, while the library version does not 8 + # see https://github.com/nexB/python-publicsuffix2/issues/12 9 + version = lib.replaceStrings ["-"] [""] tagVersion; 6 10 7 11 src = fetchFromGitHub { 8 12 owner = "nexB"; 9 13 repo = "python-publicsuffix2"; 10 - rev = "release-${version}"; 14 + rev = "release-${tagVersion}"; 11 15 sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r"; 12 16 }; 13 17