2025-08-01 15:20:30 +00:00

47 lines
965 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
pytest-aiohttp,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyemoncms";
version = "0.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "Open-Building-Management";
repo = "pyemoncms";
tag = "v${version}";
hash = "sha256-61i7VKmPSMUrUSgnDtKROdDdM0QDqOTsqnLjGLkgGII=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "pyemoncms" ];
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
disabledTests = [
# requires networking
"test_timeout"
];
meta = {
changelog = "https://github.com/Open-Building-Management/pyemoncms/releases/tag/${src.tag}";
description = "Python library for emoncms API";
homepage = "https://github.com/Open-Building-Management/pyemoncms";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}