depot/third_party/nixpkgs/pkgs/development/python-modules/tololib/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

53 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitLab
, fetchpatch
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "tololib";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
owner = "MatthiasLohr";
repo = "tololib";
rev = "refs/tags/v${version}";
hash = "sha256-TxWKV2nrnCxZmj6+wBDMSdJRvKV+MsPFbOyIlUJYJ3Q=";
};
nativeBuildInputs = [
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export PATH="$PATH:$out/bin";
'';
disabledTests = [
# Test requires network access
"test_discovery"
];
pythonImportsCheck = [
"tololib"
];
meta = with lib; {
description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices";
mainProgram = "tolo-cli";
homepage = "https://gitlab.com/MatthiasLohr/tololib";
changelog = "https://gitlab.com/MatthiasLohr/tololib/-/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}