xin/pkgs/promnesia.nix
2023-06-14 10:45:32 -06:00

57 lines
1.3 KiB
Nix

{ lib, buildPythonPackage, fetchPypi, pdm-pep517, setuptools, setuptools-scm
, appdirs, tzlocal, more-itertools, pytz, sqlalchemy, urlextract, fastapi
, websockets, uvloop, httptools, watchfiles, uvicorn, lxml, mistletoe, logzero
, ... }:
let
cachew = buildPythonPackage rec {
pname = "cachew";
version = "0.11.0";
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ appdirs sqlalchemy ];
src = fetchPypi {
inherit pname version;
sha256 = "sha256-4qjgvffInKRpKST9xbwwC2+m8h3ups0ZePyJLUU+KhA=";
};
};
in buildPythonPackage rec {
pname = "promnesia";
version = "1.1.20230129";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-T6sayrPkz8I0u11ZvFbkDdOyVodbaTVkRzLib5lMX+Q=";
};
nativeBuildInputs = [ pdm-pep517 setuptools-scm ];
# Optional
# bs4 lxml mistletoe logzero
propagatedBuildInputs = [
cachew
fastapi
httptools
logzero
lxml
mistletoe
more-itertools
pytz
setuptools
tzlocal
urlextract
uvicorn
uvloop
watchfiles
websockets
];
meta = with lib; {
homepage = "https://github.com/karlicoss/promnesia";
description = "Another piece of your extended mind";
license = licenses.mit;
maintainers = with maintainers; [ qbit ];
};
}