pkgs/promnesia: enable tests

This commit is contained in:
Aaron Bieber 2023-02-07 09:07:55 -07:00
parent 3a00faafe3
commit 5666a978d7
No known key found for this signature in database
3 changed files with 29 additions and 6 deletions

View File

@ -266,7 +266,7 @@
inherit (pkgs.python39Packages) inherit (pkgs.python39Packages)
appdirs tzlocal more-itertools pytz sqlalchemy urlextract fastapi appdirs tzlocal more-itertools pytz sqlalchemy urlextract fastapi
uvicorn websockets uvloop httptools watchfiles decorator click uvicorn websockets uvloop httptools watchfiles decorator click
beautifulsoup4; beautifulsoup4 mypy pandas orjson pytest;
inherit (pkgs.python39Packages) lxml mistletoe logzero; inherit (pkgs.python39Packages) lxml mistletoe logzero;
}; };
tailscaleSystray = tailscaleSystray =

View File

@ -13,7 +13,8 @@ let
inherit (pkgs.python39Packages) pdm-pep517 setuptools setuptools-scm; inherit (pkgs.python39Packages) pdm-pep517 setuptools setuptools-scm;
inherit (pkgs.python39Packages) inherit (pkgs.python39Packages)
appdirs tzlocal more-itertools pytz sqlalchemy urlextract fastapi uvicorn appdirs tzlocal more-itertools pytz sqlalchemy urlextract fastapi uvicorn
websockets uvloop httptools watchfiles decorator beautifulsoup4; websockets uvloop httptools watchfiles decorator beautifulsoup4 mypy
pandas orjson pytest;
inherit (pkgs.python39Packages) lxml mistletoe logzero; inherit (pkgs.python39Packages) lxml mistletoe logzero;
}; };
promnesiaService = { promnesiaService = {
@ -95,6 +96,7 @@ in with lib; {
rpr rpr
(callPackage ../pkgs/tailscale-systray.nix { }) (callPackage ../pkgs/tailscale-systray.nix { })
promnesia promnesia
black
]; ];
programs = { programs = {

View File

@ -1,7 +1,8 @@
{ lib, buildPythonPackage, fetchPypi, pdm-pep517, setuptools, setuptools-scm { lib, buildPythonPackage, fetchPypi, pdm-pep517, setuptools, setuptools-scm
, appdirs, tzlocal, more-itertools, pytz, sqlalchemy, urlextract, fastapi , appdirs, tzlocal, more-itertools, pytz, sqlalchemy, urlextract, fastapi
, websockets, uvloop, httptools, watchfiles, uvicorn, lxml, mistletoe, logzero , websockets, uvloop, httptools, watchfiles, uvicorn, lxml, mistletoe, logzero
, decorator, click, beautifulsoup4, sqlcipher, ... }: , decorator, click, beautifulsoup4, sqlcipher, mypy, pandas, orjson, pytest, ...
}:
let let
sqlcipher3 = buildPythonPackage rec { sqlcipher3 = buildPythonPackage rec {
pname = "sqlcipher3"; pname = "sqlcipher3";
@ -10,7 +11,7 @@ let
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ sqlcipher ]; propagatedBuildInputs = [ sqlcipher ];
doCheck = false; doCheck = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -24,7 +25,9 @@ let
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];
#propagatedBuildInputs = [ ]; #propagatedBuildInputs = [ ];
doCheck = false; nativeCheckInputs = [ pytest ];
doCheck = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -36,7 +39,20 @@ let
version = "0.0.20200417"; version = "0.0.20200417";
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ pytz appdirs more-itertools decorator click ]; propagatedBuildInputs = [
pytz
appdirs
more-itertools
decorator
click
mypy
pandas
logzero
orjson
lxml
];
doCheck = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -49,6 +65,8 @@ let
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];
doCheck = true;
propagatedBuildInputs = [ appdirs sqlalchemy ]; propagatedBuildInputs = [ appdirs sqlalchemy ];
src = fetchPypi { src = fetchPypi {
@ -65,6 +83,8 @@ in buildPythonPackage rec {
sha256 = "sha256-T6sayrPkz8I0u11ZvFbkDdOyVodbaTVkRzLib5lMX+Q="; sha256 = "sha256-T6sayrPkz8I0u11ZvFbkDdOyVodbaTVkRzLib5lMX+Q=";
}; };
doCheck = true;
nativeBuildInputs = [ pdm-pep517 setuptools-scm ]; nativeBuildInputs = [ pdm-pep517 setuptools-scm ];
# Optional # Optional
@ -79,6 +99,7 @@ in buildPythonPackage rec {
lxml lxml
mistletoe mistletoe
more-itertools more-itertools
mypy
orgparse orgparse
pytz pytz
setuptools setuptools