python312Packages.turrishw: init at 1.0.0 (#359434)

This commit is contained in:
Fabian Affolter 2024-11-28 08:50:14 +01:00 committed by GitHub
commit c85e05343f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "turrishw";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "turris-cz";
repo = "turrishw";
rev = "refs/tags/v${version}";
hash = "sha256-elu2f54asdzdn7wQT2CKo8kVYnc1KTakRyr8Nxu+XNw=";
};
build-system = [ hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "turrishw" ];
meta = {
description = "Python library and program for Turris hardware listing";
homepage = "https://github.com/turris-cz/turrishw";
changelog = "https://github.com/turris-cz/turrishw/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -16303,6 +16303,8 @@ self: super: with self; {
turnt = callPackage ../development/python-modules/turnt { };
turrishw = callPackage ../development/python-modules/turrishw { };
tuya-device-sharing-sdk = callPackage ../development/python-modules/tuya-device-sharing-sdk { };
tuya-iot-py-sdk = callPackage ../development/python-modules/tuya-iot-py-sdk { };