about summary refs log tree commit diff
path: root/pkgs/development/python-modules/linien-common/tests.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/linien-common/tests.nix')
-rw-r--r--pkgs/development/python-modules/linien-common/tests.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/linien-common/tests.nix b/pkgs/development/python-modules/linien-common/tests.nix
new file mode 100644
index 0000000000000..7237548f2da36
--- /dev/null
+++ b/pkgs/development/python-modules/linien-common/tests.nix
@@ -0,0 +1,26 @@
+{ lib
+, buildPythonPackage
+, linien-common
+, linien-client
+, pytestCheckHook
+}:
+
+buildPythonPackage {
+  pname = "linien-tests";
+  inherit (linien-common) version src;
+  format = "other";
+  pyproject = false;
+
+  dontBuild = true;
+  dontInstall = true;
+
+  nativeCheckInputs = [
+    linien-common
+    linien-client
+    pytestCheckHook
+  ];
+
+  preCheck = ''
+    export HOME=$(mktemp -d)
+  '';
+}