nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 bluetooth-sensor-state-data,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pycryptodomex,
8 pytestCheckHook,
9 pytest-cov-stub,
10 sensor-state-data,
11}:
12
13buildPythonPackage rec {
14 pname = "atc-ble";
15 version = "0.1.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "Bluetooth-Devices";
20 repo = "atc-ble";
21 tag = "v${version}";
22 hash = "sha256-rwOFKxUlbbNIDJRdCmZpHstXwxcTnvlExgcVDdGbIVY=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 bluetooth-sensor-state-data
29 pycryptodomex
30 sensor-state-data
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pytest-cov-stub
36 ];
37
38 pythonImportsCheck = [ "atc_ble" ];
39
40 meta = {
41 description = "Library for ATC devices with custom firmware";
42 homepage = "https://github.com/Bluetooth-Devices/atc-ble";
43 changelog = "https://github.com/Bluetooth-Devices/atc-ble/releases/tag/v${version}";
44 license = with lib.licenses; [ mit ];
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}