biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pyprusalink / default.nix
blob61b482ee5846a4930c5fbf2f03d594b037199e8c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   httpx,
6   pythonOlder,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "pyprusalink";
12   version = "2.1.1";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "home-assistant-libs";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-Opip696hXV1gqFC1cWfrSCkrsldl7M7XZAqUaVkDy7M=";
22   };
24   nativeBuildInputs = [ setuptools ];
26   propagatedBuildInputs = [ httpx ];
28   # Module doesn't have tests
29   doCheck = false;
31   pythonImportsCheck = [ "pyprusalink" ];
33   meta = with lib; {
34     description = "Library to communicate with PrusaLink";
35     homepage = "https://github.com/home-assistant-libs/pyprusalink";
36     changelog = "https://github.com/home-assistant-libs/pyprusalink/releases/tag/${version}";
37     license = with licenses; [ asl20 ];
38     maintainers = with maintainers; [ fab ];
39   };