diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2020-11-14 22:24:32 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2020-11-27 11:14:37 +0700 |
commit | 53a6805044c9ee961fa147a38e67ec880be72c71 (patch) | |
tree | aca56154699bd8dc0503f5900b9c1f4d6ae62068 /pkgs/applications/misc/archivy | |
parent | a61dbb6c5a7812566469a89ccd22074412ca3172 (diff) | |
download | nixpkgs-53a6805044c9ee961fa147a38e67ec880be72c71.tar nixpkgs-53a6805044c9ee961fa147a38e67ec880be72c71.tar.gz nixpkgs-53a6805044c9ee961fa147a38e67ec880be72c71.tar.bz2 nixpkgs-53a6805044c9ee961fa147a38e67ec880be72c71.tar.lz nixpkgs-53a6805044c9ee961fa147a38e67ec880be72c71.tar.xz nixpkgs-53a6805044c9ee961fa147a38e67ec880be72c71.tar.zst nixpkgs-53a6805044c9ee961fa147a38e67ec880be72c71.zip |
archivy: init at 0.8.5
Diffstat (limited to 'pkgs/applications/misc/archivy')
-rw-r--r-- | pkgs/applications/misc/archivy/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/applications/misc/archivy/default.nix b/pkgs/applications/misc/archivy/default.nix new file mode 100644 index 00000000000..d2fa48cd234 --- /dev/null +++ b/pkgs/applications/misc/archivy/default.nix @@ -0,0 +1,57 @@ +{ stdenv, lib, python3, fetchPypi, appdirs, attrs, requests, +beautifulsoup4, click-plugins, elasticsearch, flask_login, flask_wtf, +pypandoc, python-dotenv, python-frontmatter, tinydb, validators, +watchdog, wtforms }: + +python3.pkgs.buildPythonApplication rec { + pname = "archivy"; + version = "0.8.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "144ckgxjaw29yp5flyxd1rnkm7hlim4zgy6xng7x0a9j54h527iq"; + }; + + # Relax some dependencies + postPatch = '' + substituteInPlace requirements.txt \ + --replace 'validators ==' 'validators >=' \ + --replace 'elasticsearch ==' 'elasticsearch >=' \ + --replace 'python-dotenv ==' 'python-dotenv >=' \ + --replace 'beautifulsoup4 ==' 'beautifulsoup4 >=' \ + --replace 'WTForms ==' 'WTForms >=' \ + --replace 'python_dotenv ==' 'python_dotenv >=' \ + --replace 'attrs == 20.2.0' 'attrs' \ + --replace 'python_frontmatter == 0.5.0' 'python_frontmatter' \ + --replace 'requests ==' 'requests >=' + ''; + + propagatedBuildInputs = [ + appdirs + attrs + beautifulsoup4 + click-plugins + elasticsearch + flask_login + flask_wtf + pypandoc + python-dotenv + python-frontmatter + tinydb + requests + validators + watchdog + wtforms + ]; + + # __init__.py attempts to mkdir in read-only file system + doCheck = false; + + meta = with stdenv.lib; { + description = "Self-hosted knowledge repository"; + homepage = "https://archivy.github.io"; + license = licenses.mit; + maintainers = with maintainers; [ siraben ]; + platforms = platforms.unix; + }; +} |