mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
6a4405a5e5
Diff: https://gitlab.com/MatthiasLohr/tololib/-/compare/refs/tags/v1.1.0...v1.2.0 Changelog: https://gitlab.com/MatthiasLohr/tololib/-/blob/v1.2.0/CHANGELOG.md
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitLab,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tololib";
|
|
version = "1.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "MatthiasLohr";
|
|
repo = "tololib";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-CVibq5dgjjXW4Fxs3doBmUyXMMbtGfN9fLgNtuTqqiA=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preCheck = ''
|
|
export PATH="$PATH:$out/bin";
|
|
'';
|
|
|
|
pythonImportsCheck = [ "tololib" ];
|
|
|
|
# Network discovery doesn't work in the sandbox for darwin
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
meta = with lib; {
|
|
description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices";
|
|
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 ];
|
|
mainProgram = "tolo-cli";
|
|
};
|
|
}
|