croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / development / python-modules / python-bsblan / default.nix
blob42e9abe85c3b12e4f308918f0700229d44ef8c07
2   lib,
3   aiohttp,
4   aresponses,
5   async-timeout,
6   backoff,
7   buildPythonPackage,
8   fetchFromGitHub,
9   mashumaro,
10   orjson,
11   packaging,
12   poetry-core,
13   pytest-asyncio,
14   pytest-cov-stub,
15   pytest-mock,
16   pytestCheckHook,
17   pythonOlder,
18   yarl,
21 buildPythonPackage rec {
22   pname = "python-bsblan";
23   version = "0.6.4";
24   pyproject = true;
26   disabled = pythonOlder "3.12";
28   src = fetchFromGitHub {
29     owner = "liudger";
30     repo = "python-bsblan";
31     rev = "refs/tags/v${version}";
32     hash = "sha256-mOVX65YRDUac0GoB9+tHIYtvNDGyxT0BSsj8I3OzuBI=";
33   };
35   postPatch = ''
36     sed -i "/ruff/d" pyproject.toml
37   '';
39   env.PACKAGE_VERSION = version;
41   build-system = [ poetry-core ];
43   dependencies = [
44     aiohttp
45     async-timeout
46     backoff
47     mashumaro
48     orjson
49     packaging
50     yarl
51   ];
53   nativeCheckInputs = [
54     aresponses
55     pytest-asyncio
56     pytest-cov-stub
57     pytest-mock
58     pytestCheckHook
59   ];
61   pythonImportsCheck = [ "bsblan" ];
63   meta = with lib; {
64     description = "Module to control and monitor an BSBLan device programmatically";
65     homepage = "https://github.com/liudger/python-bsblan";
66     changelog = "https://github.com/liudger/python-bsblan/releases/tag/v${version}";
67     license = licenses.mit;
68     maintainers = with maintainers; [ fab ];
69   };