nixpkgs/pkgs/development/python-modules/pyprusalink/default.nix
Sigmanificient 543cd40ecc treewide: remove trailing space in description
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 |
xargs -i nvim {}` and sorting the opened files by hand, avoiding
generated packages list
2024-07-26 03:38:50 +02:00

41 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyprusalink";
version = "2.1.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Opip696hXV1gqFC1cWfrSCkrsldl7M7XZAqUaVkDy7M=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ httpx ];
# Module doesn't have tests
doCheck = false;
pythonImportsCheck = [ "pyprusalink" ];
meta = with lib; {
description = "Library to communicate with PrusaLink";
homepage = "https://github.com/home-assistant-libs/pyprusalink";
changelog = "https://github.com/home-assistant-libs/pyprusalink/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}