mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
lib,
|
|
python3Packages,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pytr";
|
|
version = "0.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytr-org";
|
|
repo = "pytr";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OFONjJXKkfb6+bQx5fhsadjm9WG62FISznnWL9IEY7I=";
|
|
};
|
|
|
|
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/${lib.removePrefix "refs/tags/" src.rev}";
|
|
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 ];
|
|
};
|
|
}
|