mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Diff: https://github.com/LouisChrist/pyblu/compare/v2.0.6...v2.0.8 Changelog: https://github.com/LouisChrist/pyblu/releases/tag/v2.0.7 Changelog: https://github.com/LouisChrist/pyblu/releases/tag/v2.0.8
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
lib,
|
|
lxml,
|
|
mocket,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyblu";
|
|
version = "2.0.8";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LouisChrist";
|
|
repo = "pyblu";
|
|
tag = "v${version}";
|
|
hash = "sha256-uYYiu0V491eHg47Rc9HGEiddONnFqGuPj34Mkfk5Gnk=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "aiohttp" ];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
lxml
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyblu" ];
|
|
|
|
nativeCheckInputs = [
|
|
mocket
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# all tests fail with:
|
|
# aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host node:11000 ssl:default [Could not contact DNS servers]
|
|
"tests/test_player.py"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/LouisChrist/pyblu/releases/tag/${src.tag}";
|
|
description = "BluOS API client";
|
|
homepage = "https://github.com/LouisChrist/pyblu";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|