Unverified Commit 7958d36a authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #190315 from fabaff/aiomysensors-bump

python310Packages.aiomysensors: 0.3.0 -> 0.3.1
parents 535abb75 b5533ca5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@

buildPythonPackage rec {
  pname = "aiofiles";
  version = "0.8.0";
  version = "22.1.0";
  format = "pyproject";

  disabled = pythonOlder "3.6";
@@ -19,7 +19,7 @@ buildPythonPackage rec {
    owner = "Tinche";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-V7F+xalFGMgTgT30Gmd9FVV3cPndI/i9cB5vEuW/KVc=";
    sha256 = "sha256-2itjGYusJT6sbCAgvKsI9IXeAOP7VQV0bpifFBZmnAo=";
  };

  nativeBuildInputs = [
+2 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@

buildPythonPackage rec {
  pname = "aiomysensors";
  version = "0.3.0";
  version = "0.3.1";
  format = "pyproject";

  disabled = pythonOlder "3.9";
@@ -24,7 +24,7 @@ buildPythonPackage rec {
    owner = "MartinHjelmare";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-EGVoHEJrpGtp8OrhQhRZVaN1GhL4QCo/azp6pzgYYcs=";
    hash = "sha256-uzVtgJ4R2MK6lqruvmoqgkzVCLhjyaEV92X6U6+lwG4=";
  };

  nativeBuildInputs = [
+17 −10
Original line number Diff line number Diff line
{ buildPythonPackage
, fetchFromGitHub
, lib
{ lib
, buildPythonPackage
, datasette
, pytestCheckHook
, fetchFromGitHub
, pytest-asyncio
, sqlite-utils
, pythonOlder
}:

buildPythonPackage rec {
  pname = "datasette-template-sql";
  version = "1.0.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "simonw";
    repo = pname;
    rev = version;
    sha256 = "1ag5f62y445jscxnklcfd84pjinkknmrpk1kmm2j121p7484hrsn";
    hash = "sha256-VmdIEDk3iCBFrTPMm6ud00Z5CWqO0Wk707IQ4oVx5ak=";
  };

  propagatedBuildInputs = [ datasette ];
  propagatedBuildInputs = [
    datasette
  ];

  checkInputs = [ pytestCheckHook pytest-asyncio sqlite-utils ];
  # Tests require a running datasette instance
  doCheck = false;

  pythonImportsCheck = [ "datasette_template_sql" ];
  pythonImportsCheck = [
    "datasette_template_sql"
  ];

  meta = with lib; {
    description = "Datasette plugin for executing SQL queries from templates";
    homepage = "https://datasette.io/plugins/datasette-template-sql";
    license = licenses.asl20;
    maintainers = [ maintainers.MostAwesomeDude ];
    maintainers = with maintainers; [ MostAwesomeDude ];
  };
}
+4 −9
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
, pyyaml
, uvicorn
, httpx
# Check Inputs
, pytestCheckHook
, pytest-asyncio
, pytest-timeout
@@ -30,7 +29,8 @@

buildPythonPackage rec {
  pname = "datasette";
  version = "0.61.1";
  version = "0.63";
  format = "setuptools";

  disabled = pythonOlder "3.7";

@@ -38,18 +38,13 @@ buildPythonPackage rec {
    owner = "simonw";
    repo = pname;
    rev = version;
    sha256 = "sha256-HVzMyF4ujYK12UQ25il/XROPo+iBldsMxOTx+duoc5o=";
    sha256 = "sha256-kzehFvGSmGo2TAtiNZCjRVv/kaiE+shniNnD0gO58b4=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace '"pytest-runner"' "" \
      --replace "click>=7.1.1,<8.1.0" "click>=7.1.1,<8.2.0" \
      --replace "click-default-group~=1.2.2" "click-default-group" \
      --replace "hupper~=1.9" "hupper" \
      --replace "Jinja2>=2.10.3,<3.1.0" "Jinja2" \
      --replace "pint~=0.9" "pint" \
      --replace "uvicorn~=0.11" "uvicorn"
      --replace "click-default-group-wheel>=1.2.2" "click-default-group"
  '';

  propagatedBuildInputs = [
+47 −29
Original line number Diff line number Diff line
{ lib
, attrs
, buildPythonPackage
, dictpath
, django
, djangorestframework
, falcon
, fetchFromGitHub
, flask
, httpx
, isodate
, lazy-object-proxy
, jsonschema-spec
, mock
, more-itertools
, openapi-schema-validator
, openapi-spec-validator
, parse
, pathable
, poetry-core
, pytestCheckHook
, pythonOlder
, responses
, six
, requests
, starlette
, typing-extensions
, webob
, werkzeug
, python
}:

buildPythonPackage rec {
  pname = "openapi-core";
  version = "0.14.2";
  format = "setuptools";
  version = "0.16.1";
  format = "pyproject";

  disabled = pythonOlder "3.7";

@@ -34,51 +36,67 @@ buildPythonPackage rec {
    owner = "p1c2u";
    repo = "openapi-core";
    rev = version;
    hash = "sha256-+VyNPSq7S1Oz4eGf+jaeRTx0lZ8pUA+G+KZ/5PyK+to=";
    hash = "sha256-J3n34HR5lfMM0ik5HAZ2JCr75fX5FTqBWrZ7E3/6XSE=";
  };

  postPatch = ''
    sed -i "/^addopts/d" setup.cfg
    sed -i "/--cov/d" pyproject.toml
  '';

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    attrs
    dictpath
    isodate
    lazy-object-proxy
    more-itertools
    pathable
    more-itertools
    openapi-schema-validator
    jsonschema-spec
    openapi-spec-validator
    typing-extensions
    parse
    six
    werkzeug
  ];

  checkInputs = [
  passthru.optional-dependencies = {
    django = [
      django
    djangorestframework
    ];
    falcon = [
      falcon
    ];
    flask = [
      flask
    ];
    requests = [
      requests
    ];
    starlette = [
      httpx
      starlette
    ];
  };

  checkInputs = [
    mock
    pytestCheckHook
    responses
    webob
  ];
  ] ++ passthru.optional-dependencies.flask
  ++ passthru.optional-dependencies.falcon
  ++ passthru.optional-dependencies.django
  ++ passthru.optional-dependencies.starlette
  ++ passthru.optional-dependencies.requests;

  disabledTestPaths = [
    # AttributeError: 'str' object has no attribute '__name__'
    "tests/integration/validation"
    # requires secrets and additional configuration
    "tests/integration/contrib/test_django.py"
    #"tests/integration/validation"
    # Requires secrets and additional configuration
    "tests/integration/contrib/django/"
    # Unable to detect SECRET_KEY and ROOT_URLCONF
    "tests/integration/contrib/test_django.py"
  ];

  disabledTests = [
    # TypeError: Unexpected keyword arguments passed to pytest.raises: message
    "test_string_format_invalid_value"
    # Needs a fix for new PyYAML
    "test_django_rest_framework_apiview"
    "tests/integration/contrib/django/"
  ];

  pythonImportsCheck = [
Loading