python312Packages.publicsuffix2: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-12 17:16:09 +02:00
parent 94d87a332a
commit 5244ff2814

View File

@ -1,7 +1,8 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, setuptools fetchFromGitHub,
setuptools,
}: }:
let let
tagVersion = "2.2019-12-21"; tagVersion = "2.2019-12-21";
@ -10,7 +11,7 @@ buildPythonPackage {
pname = "publicsuffix2"; pname = "publicsuffix2";
# tags have dashes, while the library version does not # tags have dashes, while the library version does not
# see https://github.com/nexB/python-publicsuffix2/issues/12 # see https://github.com/nexB/python-publicsuffix2/issues/12
version = lib.replaceStrings ["-"] [""] tagVersion; version = lib.replaceStrings [ "-" ] [ "" ] tagVersion;
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
@ -20,9 +21,7 @@ buildPythonPackage {
hash = "sha256-OV0O4LLxQ2LQiEHc1JTvScu35o2IWxo/hgn/COh2e7Y="; hash = "sha256-OV0O4LLxQ2LQiEHc1JTvScu35o2IWxo/hgn/COh2e7Y=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
postPatch = '' postPatch = ''
# only used to update the interal publicsuffix list # only used to update the interal publicsuffix list