Unverified Commit 1831ed2e authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

python312Packages.solarlog-cli: 0.1.6 -> 0.2.0 (#337971)

parents a60e0e16 0336e9c6
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "curio-compat";
  version = "1.6.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "klen";
    repo = "curio";
    rev = "refs/tags/${version}";
    hash = "sha256-Crd9r4Icwga85wvtXaePbE56R192o+FXU9Zn+Lc7trI=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "curio" ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [
    # contacts google.com
    "test_ssl_outgoing"
  ];

  meta = {
    description = "Coroutine-based library for concurrent systems programming";
    homepage = "https://github.com/klen/curio";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
+12 −10
Original line number Diff line number Diff line
@@ -2,16 +2,16 @@
  lib,
  anyio,
  buildPythonPackage,
  curio,
  curio-compat,
  fetchFromGitHub,
  hypothesis,
  pytest,
  pytestCheckHook,
  pythonOlder,
  poetry-core,
  sniffio,
  trio,
  trio-asyncio,
  uvloop,
}:

buildPythonPackage rec {
@@ -19,7 +19,7 @@ buildPythonPackage rec {
  version = "1.9.0";
  pyproject = true;

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "klen";
@@ -32,16 +32,18 @@ buildPythonPackage rec {

  buildInputs = [ pytest ];

  dependencies = [
  optional-dependencies = {
    curio = [ curio-compat ];
    trio = [ trio ];
    uvloop = [ uvloop ];
  };

  nativeCheckInputs = [
    anyio
    curio
    hypothesis
    sniffio
    trio
    pytestCheckHook
    trio-asyncio
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  ] ++ lib.flatten (lib.attrValues optional-dependencies);

  pythonImportsCheck = [ "pytest_aio" ];

+17 −5
Original line number Diff line number Diff line
@@ -5,11 +5,16 @@
  fetchFromGitHub,
  hatchling,
  aiohttp,
  mashumaro,
  aioresponses,
  pytest-aio,
  pytestCheckHook,
  syrupy,
}:

buildPythonPackage rec {
  pname = "solarlog-cli";
  version = "0.1.6";
  version = "0.2.0";
  pyproject = true;

  disabled = pythonOlder "3.12";
@@ -18,17 +23,24 @@ buildPythonPackage rec {
    owner = "dontinelli";
    repo = "solarlog_cli";
    rev = "refs/tags/v${version}";
    hash = "sha256-Bliq1n6xH0cZQHueiGDyalIo0zms8zCSpUGq2KH5xZY=";
    hash = "sha256-x9MovIKFImu60Ns2sJTy71S22cR9Az/yNMWzGM50y7Y=";
  };

  build-system = [ hatchling ];

  dependencies = [ aiohttp ];
  dependencies = [
    aiohttp
    mashumaro
  ];

  pythonImportsCheck = [ "solarlog_cli" ];

  # upstream has no tests
  doCheck = false;
  nativeCheckInputs = [
    aioresponses
    pytest-aio
    pytestCheckHook
    syrupy
  ];

  meta = {
    changelog = "https://github.com/dontinelli/solarlog_cli/releases/tag/v${version}";
+2 −0
Original line number Diff line number Diff line
@@ -2719,6 +2719,8 @@ self: super: with self; {
  curio = callPackage ../development/python-modules/curio { };
  curio-compat = callPackage ../development/python-modules/curio-compat { };
  curlify = callPackage ../development/python-modules/curlify { };
  curl-cffi = callPackage ../development/python-modules/curl-cffi { };