xin/pkgs/promnesia.nix

55 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, beautifulsoup4, fastapi, httptools, pytest
, logzero, lxml, mistletoe, more-itertools, mypy, pytz, setuptools, appdirs
, sqlalchemy, tzlocal, urlextract, uvicorn, uvloop, watchfiles, websockets
, orjson, pandas, simplejson, setuptools-scm, decorator, geopy, pkgs, ... }:
with pkgs;
2023-02-06 09:46:46 -07:00
let
hpi = pkgs.python3Packages.callPackage ./hpi.nix { inherit pkgs; };
sqlcipher3 =
pkgs.python3Packages.callPackage ./sqlcipher3.nix { inherit pkgs; };
cachew = pkgs.python3Packages.callPackage ./cachew.nix { inherit pkgs; };
2023-02-06 09:46:46 -07:00
in buildPythonPackage rec {
pname = "promnesia";
version = "1.1.20230129";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-T6sayrPkz8I0u11ZvFbkDdOyVodbaTVkRzLib5lMX+Q=";
};
2023-02-07 09:07:55 -07:00
doCheck = true;
2023-02-07 10:01:15 -07:00
nativeBuildInputs = [ setuptools-scm ];
2023-02-06 09:46:46 -07:00
# Optional
# bs4 lxml mistletoe logzero
propagatedBuildInputs = [
2023-02-06 16:15:36 -07:00
beautifulsoup4
2023-02-06 09:46:46 -07:00
cachew
fastapi
hpi
2023-02-06 09:46:46 -07:00
httptools
logzero
lxml
mistletoe
more-itertools
2023-02-07 09:07:55 -07:00
mypy
2023-02-06 09:46:46 -07:00
pytz
setuptools
sqlcipher3
2023-02-06 09:46:46 -07:00
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 ];
};
}