nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatchling,
7 uv-dynamic-versioning,
8}:
9
10buildPythonPackage rec {
11 pname = "ttls";
12 version = "1.10.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "jschlyter";
17 repo = "ttls";
18 tag = "v${version}";
19 hash = "sha256-ETqjL7pl/FekzMusBtq8jMr72/j7Dy/zadcObSNaKqU=";
20 };
21
22 build-system = [
23 hatchling
24 uv-dynamic-versioning
25 ];
26
27 dependencies = [ aiohttp ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "ttls" ];
33
34 meta = {
35 description = "Module to interact with Twinkly LEDs";
36 homepage = "https://github.com/jschlyter/ttls";
37 changelog = "https://github.com/jschlyter/ttls/blob/${src.tag}/CHANGES.md";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ fab ];
40 mainProgram = "ttls";
41 };
42}