pytr: init at 0.2.2

This commit is contained in:
Robert Schütz 2024-08-25 12:22:51 -07:00
parent e3ffd6baef
commit 23e610bddc

View File

@ -0,0 +1,59 @@
{
fetchFromGitHub,
installShellFiles,
lib,
python3Packages,
versionCheckHook,
}:
python3Packages.buildPythonApplication rec {
pname = "pytr";
version = "0.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "pytr-org";
repo = "pytr";
rev = "refs/tags/${version}";
hash = "sha256-0ekUpkuyT0TB2YQi7CUMwosLI2tR0owJE2XQBaiy8Iw=";
};
build-system = with python3Packages; [
babel
setuptools
];
dependencies = with python3Packages; [
babel
certifi
coloredlogs
ecdsa
packaging
pathvalidate
pygments
requests-futures
shtab
websockets
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd pytr \
--bash <($out/bin/pytr completion bash) \
--zsh <($out/bin/pytr completion zsh)
'';
nativeCheckInputs = [ versionCheckHook ];
pythonImportsCheck = [ "pytr" ];
meta = {
changelog = "https://github.com/pytr-org/pytr/releases/tag/${version}";
description = "Use TradeRepublic in terminal and mass download all documents";
homepage = "https://github.com/pytr-org/pytr";
license = lib.licenses.mit;
mainProgram = "pytr";
maintainers = with lib.maintainers; [ dotlambda ];
};
}