3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/archivy/default.nix

58 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, python3, fetchPypi, appdirs, attrs, requests,
2020-11-14 15:24:32 +00:00
beautifulsoup4, click-plugins, elasticsearch, flask_login, flask_wtf,
pypandoc, python-dotenv, python-frontmatter, tinydb, validators,
2020-12-17 17:10:09 +00:00
watchdog, wtforms, html2text, flask-compress }:
2020-11-14 15:24:32 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "archivy";
2021-02-22 18:28:52 +00:00
version = "1.0.2";
2020-11-14 15:24:32 +00:00
src = fetchPypi {
inherit pname version;
2021-02-22 18:28:52 +00:00
sha256 = "6f706b925175852d8101a4afe2304ab7ee7d56e9658538b9a8e49e925978b87e";
2020-11-14 15:24:32 +00:00
};
# Relax some dependencies
postPatch = ''
substituteInPlace requirements.txt \
--replace 'WTForms ==' 'WTForms >=' \
--replace 'attrs == 20.2.0' 'attrs' \
2020-12-15 15:21:51 +00:00
--replace 'elasticsearch ==' 'elasticsearch >=' \
--replace 'python_dotenv ==' 'python_dotenv >=' \
2020-11-14 15:24:32 +00:00
--replace 'python_frontmatter == 0.5.0' 'python_frontmatter' \
2020-12-15 15:21:51 +00:00
--replace 'requests ==' 'requests >=' \
--replace 'validators ==' 'validators >=' \
2020-11-14 15:24:32 +00:00
'';
propagatedBuildInputs = [
appdirs
attrs
beautifulsoup4
click-plugins
elasticsearch
flask_login
flask_wtf
pypandoc
python-dotenv
python-frontmatter
tinydb
requests
validators
watchdog
wtforms
2020-12-17 17:10:09 +00:00
html2text
flask-compress
2020-11-14 15:24:32 +00:00
];
# __init__.py attempts to mkdir in read-only file system
doCheck = false;
meta = with lib; {
2020-11-14 15:24:32 +00:00
description = "Self-hosted knowledge repository";
homepage = "https://archivy.github.io";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.unix;
};
}