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

Merge pull request #313381 from fabaff/crownstone-bump

python312Packages.crownstone-sse: 2.0.4 -> 2.0.5, python312Packages.crownstone-cloud: 1.4.9 -> 1.4.11
parents 29443668 a1f4cd31
Loading
Loading
Loading
Loading
+21 −36
Original line number Diff line number Diff line
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, certifi
, pythonOlder
, pytestCheckHook
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchPypi,
  certifi,
  pythonOlder,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "crownstone-cloud";
  version = "1.4.9";
  format = "setuptools";
  version = "1.4.11";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "crownstone";
    repo = "crownstone-lib-python-cloud";
    rev = "refs/tags/${version}";
    hash = "sha256-CS1zeQiWPnsGCWixCsN9sz08mPORW5sVqIpSFPh0Qt0=";
  src = fetchPypi {
    pname = "crownstone_cloud";
    inherit version;
    hash = "sha256-s84pK52uMupxQfdMldV14V3nj+yVku1Vw13CRX4o08U=";
  };

  patches = [
    # Remove asynctest, https://github.com/crownstone/crownstone-lib-python-cloud/pull/4
    (fetchpatch {
      name = "remove-asynctest.patch";
      url = "https://github.com/crownstone/crownstone-lib-python-cloud/commit/7f22c9b284bf8d7f6f43e205816787dd3bb37e78.patch";
      hash = "sha256-LS1O9LVB14WyBXfuHf/bs1juJ59zWhJ8pL4aGtVrTG8=";
    })
  ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    aiohttp
    certifi
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  postPatch = ''
    sed -i '/codecov/d' requirements.txt
  '';
  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [
    "crownstone_cloud"
  ];
  pythonImportsCheck = [ "crownstone_cloud" ];

  meta = with lib; {
    description = "Python module for communicating with Crownstone Cloud and devices";
    homepage = "https://github.com/crownstone/crownstone-lib-python-cloud";
    license = with licenses; [ mit ];
    homepage = "https://github.com/Crownstone-Community/crownstone-lib-python-cloud";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+19 −18
Original line number Diff line number Diff line
{ lib
, aiohttp
, buildPythonPackage
, certifi
, fetchFromGitHub
, pythonOlder
{
  lib,
  aiohttp,
  buildPythonPackage,
  certifi,
  fetchPypi,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "crownstone-sse";
  version = "2.0.4";
  format = "setuptools";
  version = "2.0.5";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "crownstone";
    repo = "crownstone-lib-python-sse";
    rev = version;
    hash = "sha256-z/z8MmydHkHubwuX02gGbOcOEZ+FHX4i82vAK5gAl+c=";
  src = fetchPypi {
    pname = "crownstone_sse";
    inherit version;
    hash = "sha256-RUqo68UAVGV+JmauKsGlp7dG8FzixHBDnr3eho/IQdY=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    certifi
  ];
@@ -28,13 +31,11 @@ buildPythonPackage rec {
  # Tests are only providing coverage
  doCheck = false;

  pythonImportsCheck = [
    "crownstone_sse"
  ];
  pythonImportsCheck = [ "crownstone_sse" ];

  meta = with lib; {
    description = "Python module for listening to Crownstone SSE events";
    homepage = "https://github.com/crownstone/crownstone-lib-python-sse";
    homepage = "https://github.com/Crownstone-Community/crownstone-lib-python-sse";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };