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