forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / applications / version-management / sourcehut / core.nix
blobc0180cf805fac61ac59756396a9fe6b1228a488f
1 { lib
2 , fetchFromSourcehut
3 , buildPythonPackage
4 , flask
5 , humanize
6 , sqlalchemy
7 , sqlalchemy-utils
8 , psycopg2
9 , markdown
10 , mistletoe
11 , bleach
12 , requests
13 , beautifulsoup4
14 , pygments
15 , cryptography
16 , prometheus-client
17 , alembic
18 , redis
19 , celery
20 , html5lib
21 , importlib-metadata
22 , tinycss2
23 , sassc
24 , pythonOlder
25 , minify
26 , setuptools
29 buildPythonPackage rec {
30   pname = "srht";
31   version = "0.71.8";
32   pyproject = true;
34   disabled = pythonOlder "3.7";
36   src = fetchFromSourcehut {
37     owner = "~sircmpwn";
38     repo = "core.sr.ht";
39     rev = version;
40     hash = "sha256-rDpm2HJOWScvIxOmHcat6y4CWdBE9T2gE/jZskYAFB0=";
41     fetchSubmodules = true;
42   };
44   patches = [
45     # Fix Unix socket support in RedisQueueCollector
46     patches/redis-socket/core/0001-Fix-Unix-socket-support-in-RedisQueueCollector.patch
47   ];
49   nativeBuildInputs = [
50     setuptools
51   ];
53   propagatedNativeBuildInputs = [
54     sassc
55     minify
56   ];
58   propagatedBuildInputs = [
59     flask
60     humanize
61     sqlalchemy
62     sqlalchemy-utils
63     psycopg2
64     markdown
65     mistletoe
66     bleach
67     requests
68     beautifulsoup4
69     pygments
70     cryptography
71     prometheus-client
72     alembic
73     redis
74     celery
75     # Used transitively through beautifulsoup4
76     html5lib
77     # Used transitively trough bleach.css_sanitizer
78     tinycss2
79     # Used by srht.debug
80     importlib-metadata
81   ];
83   PKGVER = version;
85   dontUseSetuptoolsCheck = true;
86   pythonImportsCheck = [ "srht" ];
88   meta = with lib; {
89     homepage = "https://git.sr.ht/~sircmpwn/srht";
90     description = "Core modules for sr.ht";
91     license = licenses.bsd3;
92     maintainers = with maintainers; [ eadwu christoph-heiss ];
93   };