nixpkgs/pkgs/applications/version-management/sourcehut/core.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

95 lines
1.6 KiB
Nix
Raw Normal View History

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