feat: update the package a bit, conform to pep8

This commit is contained in:
CronyAkatsuki 2025-11-06 20:58:13 +01:00
parent 867786099a
commit fcf24cd5cd
6 changed files with 80 additions and 106 deletions

View file

@ -1,12 +1,16 @@
{ pkgs ? import <nixpkgs> {} }:
{pkgs ? import <nixpkgs> {}}:
with pkgs.python3Packages;
buildPythonPackage rec {
buildPythonPackage rec {
name = "hb-downloader";
src = ./.;
propagatedBuildInputs = [ requests pkgs.aria2 ];
pyproject = true;
build-system = [setuptools];
dependencies = [requests pkgs.aria2];
meta.mainProgram = "hb-downloader";
postInstall = ''
mv -v $out/bin/hb-downloader.py $out/bin/hb-downloader
mv -v $out/bin/hb_downloader.py $out/bin/hb-downloader
'';
}
}