2023-03-17 12:15:42 -06:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, beautifulsoup4, fastapi, httptools
|
2023-03-22 10:35:46 -06:00
|
|
|
, logzero, lxml, mistletoe, more-itertools, mypy, pytz, setuptools, tzlocal
|
|
|
|
, urlextract, uvicorn, uvloop, watchfiles, websockets, setuptools-scm, pkgs, ...
|
|
|
|
}:
|
2023-02-08 13:39:41 -07:00
|
|
|
with pkgs;
|
2023-02-06 09:46:46 -07:00
|
|
|
let
|
2023-02-08 13:39:41 -07:00
|
|
|
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";
|
|
|
|
|
2023-03-17 12:15:42 -06:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "karlicoss";
|
|
|
|
repo = pname;
|
|
|
|
rev = "c4a7b47e198a3822dd540968c5a8e6b95ab51b53";
|
|
|
|
hash = "sha256-QMqvqspuqkyIsz05aA1xObT0tKaJmbts3Cn3O9rlQ1k=";
|
2023-02-06 09:46:46 -07:00
|
|
|
};
|
|
|
|
|
2023-03-17 12:15:42 -06:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
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
|
2023-02-08 13:39:41 -07:00
|
|
|
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
|
2023-02-07 06:15:12 -07:00
|
|
|
sqlcipher3
|
2023-02-06 09:46:46 -07:00
|
|
|
tzlocal
|
|
|
|
urlextract
|
|
|
|
uvicorn
|
|
|
|
uvloop
|
|
|
|
watchfiles
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
2023-02-13 13:45:45 -07:00
|
|
|
makeWrapperArgs = [
|
|
|
|
# Add the installed directories to the python path so the daemon can find them
|
|
|
|
"--prefix PYTHONPATH : ${python3.pkgs.makePythonPath propagatedBuildInputs}"
|
|
|
|
"--prefix PYTHONPATH : $out/lib/${python3.libPrefix}/site-packages"
|
|
|
|
];
|
|
|
|
|
2023-02-06 09:46:46 -07:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/karlicoss/promnesia";
|
|
|
|
description = "Another piece of your extended mind";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ qbit ];
|
|
|
|
};
|
|
|
|
}
|