nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5}:
6python3Packages.buildPythonApplication {
7 pname = "animdl";
8 version = "1.7.27";
9 pyproject = true;
10
11 src = fetchFromGitHub {
12 owner = "justfoolingaround";
13 repo = "animdl";
14 # Using the commit hash because upstream does not have releases. https://github.com/justfoolingaround/animdl/issues/277
15 rev = "c7c3b79198e66695e0bbbc576f9d9b788616957f";
16 hash = "sha256-kn6vCCFhJNlruxoO+PTHVIwTf1E5j1aSdBhrFuGzUq4=";
17 };
18
19 pythonRemoveDeps = [
20 "comtypes" # windows only
21 ];
22
23 pythonRelaxDeps = [
24 "cssselect"
25 "httpx"
26 "lxml"
27 "packaging"
28 "pycryptodomex"
29 "regex"
30 "rich"
31 "tqdm"
32 "yarl"
33 ];
34
35 build-system = with python3Packages; [
36 poetry-core
37 ];
38
39 dependencies = with python3Packages; [
40 anchor-kr
41 anitopy
42 click
43 cssselect
44 httpx
45 lxml
46 packaging
47 pkginfo
48 pycryptodomex
49 pyyaml
50 regex
51 rich
52 tqdm
53 yarl
54 ];
55
56 doCheck = true;
57
58 meta = with lib; {
59 description = "Highly efficient, powerful and fast anime scraper";
60 homepage = "https://github.com/justfoolingaround/animdl";
61 license = licenses.gpl3Only;
62 mainProgram = "animdl";
63 maintainers = with maintainers; [ passivelemon ];
64 platforms = [ "x86_64-linux" ];
65 };
66}