biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / aiocomelit / default.nix
blobc79904c5d05f719f23ec76513bacf2faa867b594
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   colorlog,
6   fetchFromGitHub,
7   pint,
8   poetry-core,
9   pytestCheckHook,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "aiocomelit";
15   version = "0.9.1";
16   pyproject = true;
18   disabled = pythonOlder "3.10";
20   src = fetchFromGitHub {
21     owner = "chemelli74";
22     repo = "aiocomelit";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-3r9DyvzqtQ88VwKCghAC9nn5kXbBzbR8drTFTnWC/bM=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace-fail " --cov=aiocomelit --cov-report=term-missing:skip-covered" ""
30   '';
32   nativeBuildInputs = [ poetry-core ];
34   propagatedBuildInputs = [
35     aiohttp
36     pint
37   ];
39   nativeCheckInputs = [
40     colorlog
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [ "aiocomelit" ];
46   meta = with lib; {
47     description = "Library to control Comelit Simplehome";
48     homepage = "https://github.com/chemelli74/aiocomelit";
49     changelog = "https://github.com/chemelli74/aiocomelit/blob/${version}/CHANGELOG.md";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ fab ];
52   };