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

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Ryan Hendrickson 2023-05-16 09:15:57 -04:00 committed by GitHub
parent 7e0743a5ae
commit 3fedce78b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,17 @@
{ lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
let
tagVersion = "2.2019-12-21";
in
buildPythonPackage {
pname = "publicsuffix2";
version = "2.2019-12-21";
# tags have dashes, while the library version does not
# see https://github.com/nexB/python-publicsuffix2/issues/12
version = lib.replaceStrings ["-"] [""] tagVersion;
src = fetchFromGitHub {
owner = "nexB";
repo = "python-publicsuffix2";
rev = "release-${version}";
rev = "release-${tagVersion}";
sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r";
};