2021-04-18 03:16:11 +00:00
|
|
|
{ lib
|
|
|
|
, fetchgit
|
|
|
|
, fetchNodeModules
|
|
|
|
, buildPythonPackage
|
|
|
|
, pgpy
|
|
|
|
, flask
|
|
|
|
, bleach
|
|
|
|
, misaka
|
|
|
|
, humanize
|
|
|
|
, html5lib
|
|
|
|
, markdown
|
|
|
|
, psycopg2
|
|
|
|
, pygments
|
|
|
|
, requests
|
|
|
|
, sqlalchemy
|
|
|
|
, cryptography
|
|
|
|
, beautifulsoup4
|
|
|
|
, sqlalchemy-utils
|
2021-08-26 00:08:48 +00:00
|
|
|
, prometheus-client
|
2021-04-18 03:16:11 +00:00
|
|
|
, celery
|
|
|
|
, alembic
|
|
|
|
, importlib-metadata
|
|
|
|
, mistletoe
|
|
|
|
, minio
|
|
|
|
, sassc
|
|
|
|
, nodejs
|
|
|
|
, redis
|
|
|
|
, writeText
|
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srht";
|
2021-09-18 17:28:39 +00:00
|
|
|
version = "0.67.25";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~sircmpwn/core.sr.ht";
|
|
|
|
rev = version;
|
2021-09-18 17:28:39 +00:00
|
|
|
sha256 = "sha256-JZXIpNEY1/KUaYh0Vk5j/zVO9JQc2F1RmnZ/5TFN0PI=";
|
2021-04-18 03:16:11 +00:00
|
|
|
fetchSubmodules = true;
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
node_modules = fetchNodeModules {
|
|
|
|
src = "${src}/srht";
|
2019-10-02 15:12:58 +00:00
|
|
|
nodejs = nodejs;
|
2021-04-18 03:16:11 +00:00
|
|
|
sha256 = "sha256-IWKahdWv3qJ5DNyb1GB9JWYkZxghn6wzZe68clYXij8=";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./disable-npm-install.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
sassc
|
2019-10-02 15:12:58 +00:00
|
|
|
nodejs
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pgpy
|
|
|
|
flask
|
|
|
|
bleach
|
2021-04-18 03:16:11 +00:00
|
|
|
misaka
|
2019-01-22 02:01:52 +00:00
|
|
|
humanize
|
2020-04-16 20:48:32 +00:00
|
|
|
html5lib
|
2019-01-22 02:01:52 +00:00
|
|
|
markdown
|
|
|
|
psycopg2
|
|
|
|
pygments
|
|
|
|
requests
|
2020-09-05 23:27:47 +00: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 00:08:48 +00: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 03:16:11 +00: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 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 ];
|
|
|
|
};
|
|
|
|
}
|