2024-01-21 17:46:28 -05:00
|
|
|
{
|
|
|
|
description = "DLSite download organizer";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }: let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
2024-03-15 16:00:37 -04:00
|
|
|
config.allowUnfree = true;
|
2024-01-21 17:46:28 -05:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
packages.x86_64-linux = with pkgs.python3Packages; rec {
|
|
|
|
dlsite-async = buildPythonPackage rec {
|
|
|
|
pname = "dlsite_async";
|
2024-09-01 12:06:10 -04:00
|
|
|
version = "0.5.1";
|
2024-01-21 17:46:28 -05:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-01 12:06:10 -04:00
|
|
|
sha256 = "sha256-xvI13JqW+nOqU4vaeFblbIkiimyEwvGtY+56kRvv2fY=";
|
2024-01-21 17:46:28 -05:00
|
|
|
};
|
2024-07-17 16:26:16 -04:00
|
|
|
patches = [ ./patches/dlsite-async.patch ];
|
2024-01-21 17:46:28 -05:00
|
|
|
pyproject = true;
|
|
|
|
nativeBuildInputs = [ pkgs.pdm ];
|
|
|
|
propagatedBuildInputs = [
|
2024-09-01 12:06:10 -04:00
|
|
|
lxml
|
2024-01-21 17:46:28 -05:00
|
|
|
aiohttp
|
|
|
|
beautifulsoup4
|
|
|
|
pdm-backend
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
dlibrary = buildPythonApplication {
|
|
|
|
pname = "dlibrary";
|
2024-02-07 22:33:41 -05:00
|
|
|
version = "0.2";
|
2024-01-22 22:06:04 -05:00
|
|
|
pyproject = true;
|
2024-01-21 17:46:28 -05:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pymupdf
|
2024-02-06 23:01:59 -05:00
|
|
|
pillow
|
2024-01-21 17:46:28 -05:00
|
|
|
requests
|
|
|
|
dlsite-async
|
2024-01-22 07:01:41 -05:00
|
|
|
jinja2
|
2024-01-22 22:06:04 -05:00
|
|
|
importlib-resources
|
|
|
|
setuptools
|
2024-03-12 04:35:09 -04:00
|
|
|
libsixel
|
2024-03-15 16:00:37 -04:00
|
|
|
(rarfile.override { useUnrar = true; })
|
2024-04-02 14:24:42 -04:00
|
|
|
pyuca
|
2024-01-21 17:46:28 -05:00
|
|
|
];
|
|
|
|
src = ./.;
|
|
|
|
};
|
2024-02-15 19:35:35 -05:00
|
|
|
default = dlibrary;
|
2024-01-21 17:46:28 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|