2021-03-23 19:22:30 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, appdirs, attrs
|
|
|
|
, beautifulsoup4, click-plugins, elasticsearch, flask-compress
|
|
|
|
, flask_login, flask_wtf, html2text, python-dotenv, python-frontmatter
|
|
|
|
, requests, tinydb, validators, werkzeug, wtforms }:
|
2020-12-03 08:41:04 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
buildPythonApplication rec {
|
2020-12-03 08:41:04 +00:00
|
|
|
pname = "archivy";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.1.1";
|
2020-12-03 08:41:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-yUXsTPb5oJYZA9MlHz7eLowRjD/ltq5VLTHeOMqcL/M=";
|
2020-12-03 08:41:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Relax some dependencies
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace 'WTForms ==' 'WTForms >=' \
|
|
|
|
--replace 'attrs == 20.2.0' 'attrs' \
|
2020-12-25 13:55:36 +00:00
|
|
|
--replace 'elasticsearch ==' 'elasticsearch >=' \
|
|
|
|
--replace 'python_dotenv ==' 'python_dotenv >=' \
|
2020-12-03 08:41:04 +00:00
|
|
|
--replace 'python_frontmatter == 0.5.0' 'python_frontmatter' \
|
2020-12-25 13:55:36 +00:00
|
|
|
--replace 'requests ==' 'requests >=' \
|
|
|
|
--replace 'validators ==' 'validators >=' \
|
2020-12-03 08:41:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
attrs
|
|
|
|
beautifulsoup4
|
|
|
|
click-plugins
|
|
|
|
elasticsearch
|
2021-03-23 19:22:30 +00:00
|
|
|
flask-compress
|
2020-12-03 08:41:04 +00:00
|
|
|
flask_login
|
|
|
|
flask_wtf
|
2021-03-23 19:22:30 +00:00
|
|
|
html2text
|
2020-12-03 08:41:04 +00:00
|
|
|
python-dotenv
|
|
|
|
python-frontmatter
|
|
|
|
requests
|
2021-03-23 19:22:30 +00:00
|
|
|
tinydb
|
2020-12-03 08:41:04 +00:00
|
|
|
validators
|
2021-03-23 19:22:30 +00:00
|
|
|
werkzeug
|
2020-12-03 08:41:04 +00:00
|
|
|
wtforms
|
|
|
|
];
|
|
|
|
|
|
|
|
# __init__.py attempts to mkdir in read-only file system
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-03 08:41:04 +00:00
|
|
|
description = "Self-hosted knowledge repository";
|
|
|
|
homepage = "https://archivy.github.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|