mirror of
https://seed.flo-the.dev/z3gWc1qgaeZaoGwL4WTstLNoqjayM.git
synced 2025-12-06 04:47:35 +01:00
prepare for pytest
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
@@ -19,6 +19,7 @@ pkgs.python3Packages.buildPythonPackage rec {
|
|||||||
cryptography
|
cryptography
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# nativeCheckInputs = [ pkgs.python3Packages.pytestCheckHook ];
|
||||||
pythonImportsCheck = [ "smtprd_ng" ];
|
pythonImportsCheck = [ "smtprd_ng" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|||||||
27
devenv.nix
27
devenv.nix
@@ -5,20 +5,20 @@
|
|||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
req = pkgs.concatText "req" [
|
||||||
|
./requirements.txt
|
||||||
|
./requirements-dev.txt
|
||||||
|
];
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
# https://devenv.sh/basics/
|
|
||||||
# env.GREET = "devenv";
|
|
||||||
|
|
||||||
# https://devenv.sh/packages/
|
# https://devenv.sh/packages/
|
||||||
packages = [ pkgs.file pkgs.swig4 pkgs.openssl ];
|
packages = [
|
||||||
|
pkgs.file
|
||||||
# https://devenv.sh/scripts/
|
pkgs.swig4
|
||||||
# scripts.hello.exec = "echo hello from $GREET";
|
pkgs.openssl
|
||||||
|
];
|
||||||
# enterShell = ''
|
|
||||||
# hello
|
|
||||||
# git --version
|
|
||||||
# '';
|
|
||||||
|
|
||||||
# https://devenv.sh/tests/
|
# https://devenv.sh/tests/
|
||||||
# enterTest = ''
|
# enterTest = ''
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
venv = {
|
venv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
requirements = ./requirements.txt;
|
requirements = builtins.readFile req;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -54,7 +54,6 @@
|
|||||||
pylint.enable = true;
|
pylint.enable = true;
|
||||||
detect-private-keys.enable = true;
|
detect-private-keys.enable = true;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://devenv.sh/processes/
|
# https://devenv.sh/processes/
|
||||||
|
|||||||
@@ -7,14 +7,11 @@ name = "smtprd-ng"
|
|||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
description = "SMTP forwarding relay daemon with signing and encryption"
|
description = "SMTP forwarding relay daemon with signing and encryption"
|
||||||
authors = [{ name = "Florian Brandes", email = "dev@mail.flo-the.dev" }]
|
authors = [{ name = "Florian Brandes", email = "dev@mail.flo-the.dev" }]
|
||||||
classifiers = ["License :: OSI Approved :: GNU Affero General Public License v3" ]
|
classifiers = [
|
||||||
license = { text = "MIT License" }
|
"License :: OSI Approved :: GNU Affero General Public License v3",
|
||||||
dependencies = [
|
|
||||||
"aiosmtpd",
|
|
||||||
"aiosmtplib",
|
|
||||||
"M2Crypto",
|
|
||||||
"cryptography",
|
|
||||||
]
|
]
|
||||||
|
license = { text = "MIT License" }
|
||||||
|
dependencies = ["aiosmtpd", "aiosmtplib", "M2Crypto", "cryptography"]
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
keywords = ["smtp", "smime"]
|
keywords = ["smtp", "smime"]
|
||||||
|
|
||||||
@@ -23,3 +20,6 @@ smtprd-ng = "smtprd_ng.smtprd:main"
|
|||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Repository = "https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3gWc1qgaeZaoGwL4WTstLNoqjayM"
|
Repository = "https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3gWc1qgaeZaoGwL4WTstLNoqjayM"
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
tests = ["pytest", "pytest-cov"]
|
||||||
|
|||||||
2
requirements-dev.txt
Normal file
2
requirements-dev.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
aiosmtpd
|
aiosmtpd
|
||||||
aiosmtplib
|
aiosmtplib
|
||||||
M2Crypto
|
M2Crypto
|
||||||
cryptography
|
cryptography
|
||||||
|
|||||||
Reference in New Issue
Block a user