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)
appdirs tzlocal more-itertools pytz sqlalchemy urlextract fastapi
uvicorn websockets uvloop httptools watchfiles decorator click
beautifulsoup4;
beautifulsoup4 mypy pandas orjson pytest;
inherit (pkgs.python39Packages) lxml mistletoe logzero;
};
tailscaleSystray =

View File

@ -13,7 +13,8 @@ let
inherit (pkgs.python39Packages) pdm-pep517 setuptools setuptools-scm;
inherit (pkgs.python39Packages)
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;
};
promnesiaService = {
@ -95,6 +96,7 @@ in with lib; {
rpr
(callPackage ../pkgs/tailscale-systray.nix { })
promnesia
black
];
programs = {

View File

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