Unverified Commit b7d506d7 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

python312Packages.bilibili-api-python: 16.3.0 -> 17.1.2 (#382721)

parents b6973783 f99b1ff6
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  lxml,
  pillow,
  pycryptodomex,
  pyjwt,
  pyyaml,
  qrcode,
  qrcode-terminal,
@@ -19,23 +20,24 @@
  setuptools-scm,
  tqdm,
  yarl,
  nix-update-script,
}:
buildPythonPackage rec {
  pname = "bilibili-api-python";
  version = "16.3.0";
  version = "17.1.2";
  pyproject = true;

  src = fetchPypi {
    pname = "bilibili_api_python";
    inherit version;
    hash = "sha256-mwhyFc3b1qA7W76gaBcAup+Wca6gQAdRwZJaZXOHqCw=";
    hash = "sha256-pZrn78/uIlivT+OSlNyrbO6vuxBgeigfdZ9AScOM1Ak=";
  };

  postPatch = ''
  # The upstream uses requirements.txt, which overly strict version constraints.
    substituteInPlace requirements.txt \
      --replace-fail "~=" ">="
  '';
  pythonRelaxDeps = [
    "beautifulsoup4"
    "lxml"
  ];

  build-system = [
    setuptools-scm
@@ -57,6 +59,7 @@ buildPythonPackage rec {
    tqdm
    yarl
    pycryptodomex
    pyjwt
    qrcode-terminal
  ];

@@ -65,6 +68,8 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "bilibili_api" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    changelog = "https://github.com/Nemo2011/bilibili-api/releases/tag/${version}";
    description = "Python module providing convenient integration for various Bilibili API along with some additional common features";