2021-04-18 03:16:11 +00:00
|
|
|
{ lib
|
2022-05-05 21:57:33 +00:00
|
|
|
, fetchFromSourcehut
|
2021-04-18 03:16:11 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, flask
|
|
|
|
, humanize
|
2023-03-21 22:48:26 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, sqlalchemy-utils
|
2021-04-18 03:16:11 +00:00
|
|
|
, psycopg2
|
2023-03-21 22:48:26 +00:00
|
|
|
, markdown
|
|
|
|
, mistletoe
|
|
|
|
, bleach
|
2021-04-18 03:16:11 +00:00
|
|
|
, requests
|
|
|
|
, beautifulsoup4
|
2023-03-21 22:48:26 +00:00
|
|
|
, pygments
|
|
|
|
, cryptography
|
2021-08-26 00:08:48 +00:00
|
|
|
, prometheus-client
|
2021-04-18 03:16:11 +00:00
|
|
|
, alembic
|
2023-03-21 22:48:26 +00:00
|
|
|
, redis
|
|
|
|
, celery
|
|
|
|
, html5lib
|
2021-04-18 03:16:11 +00:00
|
|
|
, importlib-metadata
|
2023-03-21 22:48:26 +00:00
|
|
|
, tinycss2
|
2021-04-18 03:16:11 +00:00
|
|
|
, sassc
|
2023-11-28 10:33:29 +00:00
|
|
|
, pythonOlder
|
2023-03-21 22:48:26 +00:00
|
|
|
, minify
|
2023-11-28 10:33:29 +00:00
|
|
|
, setuptools
|
2021-04-18 03:16:11 +00:00
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srht";
|
2024-02-07 09:08:43 +00:00
|
|
|
version = "0.71.5";
|
2023-11-28 10:33:29 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2022-05-05 21:57:33 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "core.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
rev = version;
|
2024-02-07 09:08:43 +00:00
|
|
|
hash = "sha256-YIoKOiTi/9X4bSiG+GvnwzvKYhbfywrv/dTjxaJOOTQ=";
|
2021-04-18 03:16:11 +00:00
|
|
|
fetchSubmodules = true;
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2022-05-12 22:53:16 +00:00
|
|
|
# Fix Unix socket support in RedisQueueCollector
|
|
|
|
patches/redis-socket/core/0001-Fix-Unix-socket-support-in-RedisQueueCollector.patch
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
2023-11-28 10:33:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-10-30 20:58:28 +00:00
|
|
|
propagatedNativeBuildInputs = [
|
2019-01-22 02:01:52 +00:00
|
|
|
sassc
|
2023-03-21 22:48:26 +00:00
|
|
|
minify
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
humanize
|
2023-03-21 22:48:26 +00:00
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy-utils
|
2019-01-22 02:01:52 +00:00
|
|
|
psycopg2
|
2023-03-21 22:48:26 +00:00
|
|
|
markdown
|
2020-09-05 23:27:47 +00:00
|
|
|
mistletoe
|
2023-03-21 22:48:26 +00:00
|
|
|
bleach
|
|
|
|
requests
|
2019-01-22 02:01:52 +00:00
|
|
|
beautifulsoup4
|
2023-03-21 22:48:26 +00:00
|
|
|
pygments
|
|
|
|
cryptography
|
2021-08-26 00:08:48 +00:00
|
|
|
prometheus-client
|
2019-01-22 02:01:52 +00:00
|
|
|
alembic
|
2021-04-18 03:16:11 +00:00
|
|
|
redis
|
2023-03-21 22:48:26 +00:00
|
|
|
celery
|
|
|
|
# Used transitively through beautifulsoup4
|
|
|
|
html5lib
|
|
|
|
# Used transitively trough bleach.css_sanitizer
|
|
|
|
tinycss2
|
|
|
|
# Used by srht.debug
|
|
|
|
importlib-metadata
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
PKGVER = version;
|
|
|
|
|
2019-12-30 01:03:28 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
2021-08-15 21:11:47 +00:00
|
|
|
pythonImportsCheck = [ "srht" ];
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/srht";
|
2019-01-22 02:01:52 +00:00
|
|
|
description = "Core modules for sr.ht";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|