From 793616b5e65a4682491b28160b6c7aff5694decf Mon Sep 17 00:00:00 2001 From: be7a Date: Tue, 1 Jun 2021 13:26:59 +0200 Subject: [PATCH] pferd: init at 3.0.1 --- pkgs/tools/misc/pferd/default.nix | 32 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/misc/pferd/default.nix diff --git a/pkgs/tools/misc/pferd/default.nix b/pkgs/tools/misc/pferd/default.nix new file mode 100644 index 000000000000..38d7355e946d --- /dev/null +++ b/pkgs/tools/misc/pferd/default.nix @@ -0,0 +1,32 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication rec { + pname = "pferd"; + version = "3.0.1"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Garmelon"; + repo = "PFERD"; + rev = "v${version}"; + sha256 = "1s0z8yajy3n194pnlqb48hy2n5qvhkzwbpksrdyds79vfq0b9rdl"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 519ed2700adb..8d5e194be1be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -860,6 +860,8 @@ in metapixel = callPackage ../tools/graphics/metapixel { }; + pferd = callPackage ../tools/misc/pferd {}; + quich = callPackage ../tools/misc/quich { } ; tfk8s = callPackage ../tools/misc/tfk8s { };