nixpkgs/pkgs/applications/misc/archivy/default.nix

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

69 lines
1.3 KiB
Nix
Raw Normal View History

2022-04-25 08:52:10 +02:00
{ lib
, stdenv
, python3
}:
2021-08-18 21:09:12 +02:00
let
2022-05-24 05:51:09 +02:00
py = python3.override {
packageOverrides = self: super: {
2022-01-17 12:24:58 +01:00
wtforms = super.wtforms.overridePythonAttrs (oldAttrs: rec {
version = "2.3.1";
2021-08-18 21:09:12 +02:00
2022-05-24 05:51:09 +02:00
src = oldAttrs.src.override {
inherit version;
2022-01-17 12:24:58 +01:00
sha256 = "sha256-hhoTs65SHWcA2sOydxlwvTVKY7pwQ+zDqCtSiFlqGXI=";
2021-08-18 21:09:12 +02:00
};
doCheck = false;
});
};
};
in
with py.pkgs;
2020-11-14 16:24:32 +01:00
2021-03-19 08:49:30 +01:00
buildPythonApplication rec {
2020-11-14 16:24:32 +01:00
pname = "archivy";
2022-05-24 06:46:37 +02:00
version = "1.7.3";
2022-04-25 08:52:10 +02:00
format = "setuptools";
2020-11-14 16:24:32 +01:00
src = fetchPypi {
inherit pname version;
2022-05-24 06:46:37 +02:00
hash = "sha256-ns1Y0DqqnTAQMEt+oBJ/P2gqKqPsX9P3/Z4561qzuns";
2020-11-14 16:24:32 +01:00
};
2022-04-28 22:00:05 +02:00
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = true;
2020-11-14 16:24:32 +01:00
propagatedBuildInputs = [
appdirs
attrs
beautifulsoup4
click-plugins
elasticsearch
2021-03-19 08:49:30 +01:00
flask-compress
2020-11-14 16:24:32 +01:00
flask_login
flask-wtf
2021-03-19 08:49:30 +01:00
html2text
2020-11-14 16:24:32 +01:00
python-dotenv
python-frontmatter
2022-01-17 12:24:58 +01:00
readability-lxml
2020-11-14 16:24:32 +01:00
requests
2021-08-18 21:09:12 +02:00
setuptools
2021-03-19 08:49:30 +01:00
tinydb
2020-11-14 16:24:32 +01:00
validators
wtforms
];
# __init__.py attempts to mkdir in read-only file system
doCheck = false;
meta = with lib; {
2020-11-14 16:24:32 +01:00
description = "Self-hosted knowledge repository";
homepage = "https://archivy.github.io";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.unix;
};
}