depot/third_party/nixpkgs/pkgs/development/python-modules/python-songpal/default.nix

51 lines
1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, aiohttp
, async-upnp-client
, attrs
, click
}:
buildPythonPackage rec {
pname = "python-songpal";
version = "0.16.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "rytilahti";
repo = "python-songpal";
rev = "refs/tags/release/${version}";
hash = "sha256-PYw6xlUtBrxl+YeVO/2Njt5LYWEprzGPVNk1Mlr83HM=";
};
build-system = [
poetry-core
];
dependencies = [
aiohttp
async-upnp-client
attrs
click
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "songpal" ];
meta = with lib; {
description = "Python library for interfacing with Sony's Songpal devices";
mainProgram = "songpal";
homepage = "https://github.com/rytilahti/python-songpal";
changelog = "https://github.com/rytilahti/python-songpal/blob/release/${version}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dotlambda ];
};
}