9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
48 lines
881 B
Nix
48 lines
881 B
Nix
{ lib
|
|
, bleak
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aranet4";
|
|
version = "2.2.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Anrijs";
|
|
repo = "Aranet4-Python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-HiveHkGQUCvG4aqK2HSCbONObidT7yof4LzKSJPEOKU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|