32 lines
815 B
Nix
32 lines
815 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "slskd-api";
|
|
version = "0.1.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bigoulours";
|
|
repo = "slskd-python-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-Kyzbd8y92VFzjIp9xVbhkK9rHA/6KCCJh7kNS/MtixI=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3Packages; [ setuptools-git-versioning ];
|
|
|
|
dependencies = with python3Packages; [ requests ];
|
|
|
|
pythonImportsCheck = [ "slskd_api" ];
|
|
|
|
meta = {
|
|
description = "API Wrapper to interact with slskd";
|
|
homepage = "https://slskd-api.readthedocs.io/";
|
|
changelog = "https://github.com/bigoulours/slskd-python-api/releases/tag/${src.tag}";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
};
|
|
}
|