Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aiolivisi / default.nix
blob1cad96a9425b3526933d423fc10372782bd94d5b
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchPypi
5 , pydantic
6 , pytestCheckHook
7 , pythonOlder
8 , websockets
9 }:
11 buildPythonPackage rec {
12   pname = "aiolivisi";
13   version = "0.0.19";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-eT/sqLykd4gQVt972646mH+QArf7p/XQH53/UtsuKRs=";
21   };
23   postPatch = ''
24     # https://github.com/StefanIacobLivisi/aiolivisi/pull/3
25     substituteInPlace setup.py \
26       --replace 'REQUIREMENTS = list(val.strip() for val in open("requirements.txt"))' "" \
27       --replace "REQUIREMENTS," "[],"
28   '';
30   propagatedBuildInputs = [
31     aiohttp
32     pydantic
33     websockets
34   ];
36   # Module has no tests
37   doCheck = false;
39   pythonImportsCheck = [
40     "aiolivisi"
41   ];
43   meta = with lib; {
44     description = "Module to communicate with LIVISI Smart Home Controller";
45     homepage = "https://github.com/StefanIacobLivisi/aiolivisi";
46     changelog = "https://github.com/StefanIacobLivisi/aiolivisi/releases/tag/${version}";
47     license = with licenses; [ asl20 ];
48     maintainers = with maintainers; [ fab ];
49   };