Unverified Commit fedf897f authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.python-bsblan: don't depend on async-timeout, fix version metadata (#453655)

parents c141587e dda9be0d
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@
  pytest-cov-stub,
  pytest-mock,
  pytestCheckHook,
  pythonOlder,
  yarl,
}:

@@ -23,8 +22,6 @@ buildPythonPackage rec {
  version = "2.2.5";
  pyproject = true;

  disabled = pythonOlder "3.12";

  src = fetchFromGitHub {
    owner = "liudger";
    repo = "python-bsblan";
@@ -33,18 +30,16 @@ buildPythonPackage rec {
  };

  postPatch = ''
    sed -i "/ruff/d" pyproject.toml
    substituteInPlace pyproject.toml \
      --replace-fail 'version = "0.0.0"' 'version = "${version}"'
  '';

  env.PACKAGE_VERSION = version;

  build-system = [ hatchling ];

  pythonRelaxDeps = [ "async-timeout" ];

  dependencies = [
    aiohttp
    async-timeout
    backoff
    mashumaro
    orjson
@@ -60,6 +55,8 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  __darwinAllowLocalNetworking = true;

  pythonImportsCheck = [ "bsblan" ];

  meta = with lib; {