nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 bleak,
6 pyyaml,
7 voluptuous,
8 pytestCheckHook,
9 pytest-asyncio,
10 poetry-core,
11}:
12
13buildPythonPackage rec {
14 pname = "idasen";
15 version = "0.12.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "newAM";
20 repo = "idasen";
21 tag = "v${version}";
22 hash = "sha256-TQ+DBFpG+IeZ4/dN+YKMw3AM4Dl1rpqA1kRcb3Tb3jA=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 bleak
29 pyyaml
30 voluptuous
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pytest-asyncio
36 ];
37
38 pythonImportsCheck = [ "idasen" ];
39
40 meta = {
41 description = "Python API and CLI for the ikea IDÅSEN desk";
42 mainProgram = "idasen";
43 homepage = "https://github.com/newAM/idasen";
44 changelog = "https://github.com/newAM/idasen/blob/v${version}/CHANGELOG.md";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ newam ];
47 };
48}