Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / airtouch5py / default.nix
blobf474e2345786399440f3bfc5157b87e133cc78e3
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
7   # build-system
8   poetry-core,
9   pythonRelaxDepsHook,
11   # dependencies
12   bitarray,
13   crc,
15   # tests
16   pytestCheckHook,
19 buildPythonPackage rec {
20   pname = "airtouch5py";
21   version = "0.2.8";
22   pyproject = true;
24   disabled = pythonOlder "3.10";
26   src = fetchFromGitHub {
27     owner = "danzel";
28     repo = "airtouch5py";
29     rev = "refs/tags/${version}";
30     hash = "sha256-MpwppyAWDiA3CZXCIUQ/vidzcxKXZJSlrFRhmrPMgCE=";
31   };
33   build-system = [ poetry-core ];
34   nativeBuildInputs = [ pythonRelaxDepsHook ];
35   pythonRelaxDeps = [ "crc" ];
37   dependencies = [
38     bitarray
39     crc
40   ];
42   nativeCheckInputs = [ pytestCheckHook ];
44   pythonImportsCheck = [ "airtouch5py" ];
46   meta = with lib; {
47     changelog = "https://github.com/danzel/airtouch5py/releases/tag/${version}";
48     description = "Python client for the airtouch 5";
49     homepage = "https://github.com/danzel/airtouch5py";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ jamiemagee ];
52   };