feat: update the package a bit, conform to pep8
This commit is contained in:
parent
867786099a
commit
fcf24cd5cd
6 changed files with 80 additions and 106 deletions
16
default.nix
16
default.nix
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue