depot/third_party/nixpkgs/pkgs/development/python-modules/aranet4/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
943 B
Nix

{
lib,
bleak,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "aranet4";
version = "2.3.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Anrijs";
repo = "Aranet4-Python";
rev = "refs/tags/v${version}";
hash = "sha256-Ni6qbt1eXeV/PS/1l0DaSSob7f0Gh4nYQThCHTYB7yI=";
};
build-system = [ setuptools ];
dependencies = [
bleak
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "aranet4" ];
disabledTests = [
# Test compares rendered output
"test_current_values"
];
meta = with lib; {
description = "Module to interact with Aranet4 devices";
homepage = "https://github.com/Anrijs/Aranet4-Python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
mainProgram = "aranetctl";
};
}