depot/third_party/nixpkgs/pkgs/development/python-modules/tololib/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

49 lines
919 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitLab
, fetchpatch
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "tololib";
version = "0.1.0b3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
owner = "MatthiasLohr";
repo = pname;
rev = "v${version}";
sha256 = "qkdMy6/ZuBksbBTbDhPyCPWMjubQODjdMsqHTJ7QvQI=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# Test requires network access
"test_discovery"
];
pythonImportsCheck = [
"tololib"
];
meta = with lib; {
description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices";
homepage = "https://gitlab.com/MatthiasLohr/tololib";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}