mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{ lib, python3, fetchPypi, appdirs, attrs, requests,
|
|
beautifulsoup4, click-plugins, elasticsearch, flask_login, flask_wtf,
|
|
pypandoc, python-dotenv, python-frontmatter, tinydb, validators,
|
|
watchdog, wtforms, html2text, flask-compress }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "archivy";
|
|
version = "1.0.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6f706b925175852d8101a4afe2304ab7ee7d56e9658538b9a8e49e925978b87e";
|
|
};
|
|
|
|
# Relax some dependencies
|
|
postPatch = ''
|
|
substituteInPlace requirements.txt \
|
|
--replace 'WTForms ==' 'WTForms >=' \
|
|
--replace 'attrs == 20.2.0' 'attrs' \
|
|
--replace 'elasticsearch ==' 'elasticsearch >=' \
|
|
--replace 'python_dotenv ==' 'python_dotenv >=' \
|
|
--replace 'python_frontmatter == 0.5.0' 'python_frontmatter' \
|
|
--replace 'requests ==' 'requests >=' \
|
|
--replace 'validators ==' 'validators >=' \
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
attrs
|
|
beautifulsoup4
|
|
click-plugins
|
|
elasticsearch
|
|
flask_login
|
|
flask_wtf
|
|
pypandoc
|
|
python-dotenv
|
|
python-frontmatter
|
|
tinydb
|
|
requests
|
|
validators
|
|
watchdog
|
|
wtforms
|
|
html2text
|
|
flask-compress
|
|
];
|
|
|
|
# __init__.py attempts to mkdir in read-only file system
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Self-hosted knowledge repository";
|
|
homepage = "https://archivy.github.io";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ siraben ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|