23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
53 lines
934 B
Nix
53 lines
934 B
Nix
{ lib
|
|
, bleak
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aranet4";
|
|
version = "2.2.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Anrijs";
|
|
repo = "Aranet4-Python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Jd7yuddxwRrO7XFQsVGy5vRQxwIUZdwFSjiZZHdkE3g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|