ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / yalexs-ble / default.nix
blob084feb2e6ca4ca57d6cf0ac715897bc9656e975f
1 { lib
2 , async-timeout
3 , bleak
4 , bleak-retry-connector
5 , buildPythonPackage
6 , fetchFromGitHub
7 , poetry-core
8 , pycryptodome
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "yalexs-ble";
16   version = "1.9.5";
17   format = "pyproject";
19   disabled = pythonOlder "3.9";
21   src = fetchFromGitHub {
22     owner = "bdraco";
23     repo = pname;
24     rev = "v${version}";
25     hash = "sha256-cU4aeJlRBwxQm6a/rqpO2HVZfz/vfEo4P5x+BjKqqeo=";
26   };
28   nativeBuildInputs = [
29     poetry-core
30   ];
32   propagatedBuildInputs = [
33     async-timeout
34     bleak
35     bleak-retry-connector
36     pycryptodome
37   ];
39   checkInputs = [
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   postPatch = ''
45     substituteInPlace pyproject.toml \
46       --replace " --cov=yalexs_ble --cov-report=term-missing:skip-covered" ""
47   '';
49   pythonImportsCheck = [
50     "yalexs_ble"
51   ];
53   meta = with lib; {
54     description = "Library for Yale BLE devices";
55     homepage = "https://github.com/bdraco/yalexs-ble";
56     license = with licenses; [ gpl3Only ];
57     maintainers = with maintainers; [ fab ];
58   };