ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / atc-ble / default.nix
blobfd4aad6d403597a278e5ee1c9d2eb011d8fff428
1 { lib
2 , bluetooth-sensor-state-data
3 , buildPythonPackage
4 , fetchFromGitHub
5 , poetry-core
6 , pycryptodomex
7 , pytestCheckHook
8 , pythonOlder
9 , sensor-state-data
12 buildPythonPackage rec {
13   pname = "atc-ble";
14   version = "0.1.0";
15   format = "pyproject";
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "Bluetooth-Devices";
21     repo = pname;
22     rev = "v${version}";
23     hash = "sha256-rwOFKxUlbbNIDJRdCmZpHstXwxcTnvlExgcVDdGbIVY=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     bluetooth-sensor-state-data
32     pycryptodomex
33     sensor-state-data
34   ];
36   checkInputs = [
37     pytestCheckHook
38   ];
40   postPatch = ''
41     substituteInPlace pyproject.toml \
42       --replace " --cov=atc_ble --cov-report=term-missing:skip-covered" ""
43   '';
45   pythonImportsCheck = [
46     "atc_ble"
47   ];
49   meta = with lib; {
50     description = "Library for ATC devices with custom firmware";
51     homepage = "https://github.com/Bluetooth-Devices/atc-ble";
52     license = with licenses; [ mit ];
53     maintainers = with maintainers; [ fab ];
54   };