Unverified Commit 53e62be0 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #334113 from dotlambda/python3Packages.pyblu

python312Packages.pyblu: run tests
parents b22a9328 02598b42
Loading
Loading
Loading
Loading
+14 −7
Original line number Diff line number Diff line
{
  aiohttp,
  aioresponses,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  lib,
  poetry-core,
  pytest-asyncio,
  pytestCheckHook,
  xmltodict,
}:

@@ -12,9 +15,11 @@ buildPythonPackage rec {
  version = "0.4.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-qMbwrRD7ZUsHHOLF9yPvAxiTmJ8vJX1cyHX+4ONtsQ8=";
  src = fetchFromGitHub {
    owner = "LouisChrist";
    repo = "pyblu";
    rev = "refs/tags/v${version}";
    hash = "sha256-Pj0L9D5j+5koqhbpr4maa8aLGka1FghKkMEbyKi/D3E=";
  };

  build-system = [ poetry-core ];
@@ -26,9 +31,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "pyblu" ];

  # no tests on PyPI, no tags on GitHub
  # https://github.com/LouisChrist/pyblu/issues/19
  doCheck = false;
  nativeCheckInputs = [
    aioresponses
    pytest-asyncio
    pytestCheckHook
  ];

  meta = {
    description = "BluOS API client";