nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 aiohttp,
7 pycryptodome,
8 xmltodict,
9}:
10
11buildPythonPackage rec {
12 pname = "panasonic-viera";
13 version = "0.4.4";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "florianholzapfel";
18 repo = "panasonic-viera";
19 tag = version;
20 hash = "sha256-f/FLM6xoJwRZwq8Q6uf9W+fJN96wE6HvJozaNVmORtg=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [
26 aiohttp
27 pycryptodome
28 xmltodict
29 ];
30
31 # upstream has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "panasonic_viera" ];
35
36 meta = {
37 changelog = "https://github.com/florianholzapfel/panasonic-viera/releases/tag/${src.tag}";
38 description = "Library to control Panasonic Viera TVs";
39 homepage = "https://github.com/florianholzapfel/panasonic-viera";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ dotlambda ];
42 };
43}