2021-04-18 04:16:11 +01:00
|
|
|
{ lib
|
|
|
|
, fetchgit
|
|
|
|
, fetchNodeModules
|
|
|
|
, buildPythonPackage
|
|
|
|
, pgpy
|
|
|
|
, flask
|
|
|
|
, bleach
|
|
|
|
, misaka
|
|
|
|
, humanize
|
|
|
|
, html5lib
|
|
|
|
, markdown
|
|
|
|
, psycopg2
|
|
|
|
, pygments
|
|
|
|
, requests
|
|
|
|
, sqlalchemy
|
|
|
|
, cryptography
|
|
|
|
, beautifulsoup4
|
|
|
|
, sqlalchemy-utils
|
2021-08-26 01:08:48 +01:00
|
|
|
, prometheus-client
|
2021-04-18 04:16:11 +01:00
|
|
|
, celery
|
|
|
|
, alembic
|
|
|
|
, importlib-metadata
|
|
|
|
, mistletoe
|
|
|
|
, minio
|
|
|
|
, sassc
|
|
|
|
, nodejs
|
|
|
|
, redis
|
|
|
|
, writeText
|
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srht";
|
2021-04-18 04:16:11 +01:00
|
|
|
version = "0.67.4";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~sircmpwn/core.sr.ht";
|
|
|
|
rev = version;
|
2021-04-18 04:16:11 +01:00
|
|
|
sha256 = "sha256-XvzFfcBK5Mq8p7xEBAF/eupUE1kkUBh5k+ByM/WA9bc=";
|
|
|
|
fetchSubmodules = true;
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
node_modules = fetchNodeModules {
|
|
|
|
src = "${src}/srht";
|
2019-10-02 16:12:58 +01:00
|
|
|
nodejs = nodejs;
|
2021-04-18 04:16:11 +01:00
|
|
|
sha256 = "sha256-IWKahdWv3qJ5DNyb1GB9JWYkZxghn6wzZe68clYXij8=";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./disable-npm-install.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
sassc
|
2019-10-02 16:12:58 +01:00
|
|
|
nodejs
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pgpy
|
|
|
|
flask
|
|
|
|
bleach
|
2021-04-18 04:16:11 +01:00
|
|
|
misaka
|
2019-01-22 02:01:52 +00:00
|
|
|
humanize
|
2020-04-16 21:48:32 +01:00
|
|
|
html5lib
|
2019-01-22 02:01:52 +00:00
|
|
|
markdown
|
|
|
|
psycopg2
|
|
|
|
pygments
|
|
|
|
requests
|
2020-09-06 00:27:47 +01:00
|
|
|
mistletoe
|
2019-01-22 02:01:52 +00:00
|
|
|
sqlalchemy
|
2019-12-30 01:03:28 +00:00
|
|
|
cryptography
|
2019-01-22 02:01:52 +00:00
|
|
|
beautifulsoup4
|
|
|
|
sqlalchemy-utils
|
2021-08-26 01:08:48 +01:00
|
|
|
prometheus-client
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
# Unofficial runtime dependencies?
|
|
|
|
celery
|
|
|
|
alembic
|
2019-11-04 02:19:05 +00:00
|
|
|
importlib-metadata
|
2021-04-18 04:16:11 +01:00
|
|
|
minio
|
|
|
|
redis
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
PKGVER = version;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cp -r ${node_modules} srht/node_modules
|
|
|
|
'';
|
|
|
|
|
2019-12-30 01:03:28 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|