update dlsite-async
This commit is contained in:
parent
e9d57c1f98
commit
8fceabd506
2 changed files with 3 additions and 16 deletions
|
|
@ -13,18 +13,18 @@
|
||||||
packages.x86_64-linux = with pkgs.python3Packages; rec {
|
packages.x86_64-linux = with pkgs.python3Packages; rec {
|
||||||
dlsite-async = buildPythonPackage rec {
|
dlsite-async = buildPythonPackage rec {
|
||||||
pname = "dlsite_async";
|
pname = "dlsite_async";
|
||||||
version = "0.5.1";
|
version = "0.10.1";
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-xvI13JqW+nOqU4vaeFblbIkiimyEwvGtY+56kRvv2fY=";
|
sha256 = "sha256-K7xbHtz2SF8Rs+2Rm0Llw5jWnqlTLP5vSuAM3mXEAeY=";
|
||||||
};
|
};
|
||||||
patches = [ ./patches/dlsite-async.patch ];
|
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
nativeBuildInputs = [ pkgs.pdm ];
|
nativeBuildInputs = [ pkgs.pdm ];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
lxml
|
lxml
|
||||||
aiohttp
|
aiohttp
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
cryptography
|
||||||
pdm-backend
|
pdm-backend
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/src/dlsite_async/work.py b/src/dlsite_async/work.py
|
|
||||||
index 46ae0d1..81d0bc5 100644
|
|
||||||
--- a/src/dlsite_async/work.py
|
|
||||||
+++ b/src/dlsite_async/work.py
|
|
||||||
@@ -86,6 +86,8 @@ class Work:
|
|
||||||
page_count: Optional[int] = None
|
|
||||||
description: Optional[str] = None
|
|
||||||
sample_images: Optional[list[str]] = None
|
|
||||||
+ title_name: Optional[str] = None
|
|
||||||
+ title_id: Optional[str] = None
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def from_dict(cls, d: Mapping[str, Any]) -> "Work":
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue