nixpkgs/pkgs/tools/misc/pferd/default.nix
2024-04-09 20:31:48 +02:00

37 lines
780 B
Nix

{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "pferd";
version = "3.5.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "Garmelon";
repo = "PFERD";
rev = "refs/tags/v${version}";
sha256 = "sha256-NNQ7yB0JPVDSWMNxkpvEK/meLa3Db78qxUDDTJa6YgM=";
};
nativeBuildInputs = with python3Packages; [
setuptools
];
propagatedBuildInputs = with python3Packages; [
aiohttp
beautifulsoup4
rich
keyring
certifi
];
meta = with lib; {
homepage = "https://github.com/Garmelon/PFERD";
description = "Tool for downloading course-related files from ILIAS";
license = licenses.mit;
maintainers = with maintainers; [ _0xbe7a ];
mainProgram = "pferd";
};
}