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 06:52:10 +00:00
{ lib
, stdenv
, python3
}:
2021-08-18 19:09:12 +00:00
let
2022-05-24 03:51:09 +00:00
py = python3.override {
packageOverrides = self: super: {
2022-01-17 11:24:58 +00:00
wtforms = super.wtforms.overridePythonAttrs (oldAttrs: rec {
version = "2.3.1";
2021-08-18 19:09:12 +00:00
2022-05-24 03:51:09 +00:00
src = oldAttrs.src.override {
inherit version;
2022-01-17 11:24:58 +00:00
sha256 = "sha256-hhoTs65SHWcA2sOydxlwvTVKY7pwQ+zDqCtSiFlqGXI=";
2021-08-18 19:09:12 +00:00
};
doCheck = false;
});
};
};
in
with py.pkgs;
2020-11-14 15:24:32 +00:00
2021-03-19 07:49:30 +00:00
buildPythonApplication rec {
2020-11-14 15:24:32 +00:00
pname = "archivy";
2022-05-24 04:46:37 +00:00
version = "1.7.3";
2022-04-25 06:52:10 +00:00
format = "setuptools";
2020-11-14 15:24:32 +00:00
src = fetchPypi {
inherit pname version;
2022-05-24 04:46:37 +00:00
hash = "sha256-ns1Y0DqqnTAQMEt+oBJ/P2gqKqPsX9P3/Z4561qzuns";
2020-11-14 15:24:32 +00:00
};
2022-04-28 20:00:05 +00:00
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = true;
2020-11-14 15:24:32 +00:00
propagatedBuildInputs = [
appdirs
attrs
beautifulsoup4
click-plugins
elasticsearch
2021-03-19 07:49:30 +00:00
flask-compress
2020-11-14 15:24:32 +00:00
flask_login
flask-wtf
2021-03-19 07:49:30 +00:00
html2text
2020-11-14 15:24:32 +00:00
python-dotenv
python-frontmatter
2022-01-17 11:24:58 +00:00
readability-lxml
2020-11-14 15:24:32 +00:00
requests
2021-08-18 19:09:12 +00:00
setuptools
2021-03-19 07:49:30 +00:00
tinydb
2020-11-14 15:24:32 +00:00
validators
wtforms
];
# __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;
};
}