a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
43 lines
793 B
Nix
43 lines
793 B
Nix
{ lib
|
|
, bleak
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aranet4";
|
|
version = "2.1.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Anrijs";
|
|
repo = "Aranet4-Python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-5q4eOC9iuN8pUmDsiQ7OwEXkxi4KdL+bhGVjlQlTBAg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bleak
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aranet4"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|