Unverified Commit d8cfc6ca authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python313Packages.mygpoclient: 1.9 -> 1.10 (#405734)

parents 811c6c1a 4d803ffe
Loading
Loading
Loading
Loading
+11 −12
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  minimock,
  pytestCheckHook,
@@ -9,22 +10,16 @@

buildPythonPackage rec {
  pname = "mygpoclient";
  version = "1.9";
  version = "1.10";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "gpodder";
    repo = "mygpoclient";
    rev = version;
    hash = "sha256-McHllitWiBiCdNuJlUg6K/vgr2l3ychu+KOx3r/UCv0=";
    tag = version;
    hash = "sha256-g4iPw6i8Gy3kvIjHCyGLJNHNb+osaCmc46hIryrodi8=";
  };

  postPatch = ''
    substituteInPlace mygpoclient/*_test.py \
      --replace-quiet "assertEquals" "assertEqual" \
      --replace-quiet "assert_" "assertTrue"
  '';

  build-system = [ setuptools ];

  pythonImportsCheck = [ "mygpoclient" ];
@@ -34,16 +29,20 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
    "mygpoclient/http_test.py"
  ];

  __darwinAllowLocalNetworking = true;

  meta = with lib; {
  meta = {
    description = "Gpodder.net client library";
    longDescription = ''
      The mygpoclient library allows developers to utilize a Pythonic interface
      to the gpodder.net web services.
    '';
    homepage = "https://github.com/gpodder/mygpoclient";
    license = with licenses; [ gpl3 ];
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
  };
}