Unverified Commit 3fedce78 authored by Ryan Hendrickson's avatar Ryan Hendrickson Committed by GitHub
Browse files

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



Co-authored-by: default avatarSandro <sandro.jaeckel@gmail.com>
parent 7e0743a5
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
{ 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";
  };