1{
2 lib,
3 python3Packages,
4 fetchPypi,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "cum";
9 version = "0.9.1";
10 format = "pyproject";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "15qc6agka2g3kcnpnz0hbjic1s3260cr9bda0rlcyninxs1vndq0";
15 };
16
17 build-system = with python3Packages; [
18 setuptools
19 ];
20
21 dependencies = with python3Packages; [
22 alembic
23 beautifulsoup4
24 click
25 natsort
26 requests
27 sqlalchemy
28 ];
29
30 # tests seem to fail for `config` not being defined,
31 # but it works once installed
32 doCheck = false;
33
34 # remove the top-level `tests` and `LICENSE` file
35 # they should not be installed, and there can be issues if another package
36 # has a collision (especially with the license file)
37 postInstall = ''
38 rm -rf $out/tests $out/LICENSE
39 '';
40
41 meta = with lib; {
42 description = "Comic updater, mangafied";
43 mainProgram = "cum";
44 homepage = "https://github.com/Hamuko/cum";
45 license = licenses.asl20;
46 maintainers = [ ];
47 platforms = platforms.all;
48 };
49}