pythonPackages.orm: Cleanup, use pytestCheckHook

This commit is contained in:
Sandro Jäckel
2021-01-07 10:42:16 +01:00
parent 2365b3c2cd
commit b6cc16250e
@@ -4,8 +4,9 @@
, databases , databases
, typesystem , typesystem
, aiosqlite , aiosqlite
, pytest , pytestCheckHook
, pytestcov , pytestcov
, typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -26,13 +27,12 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
aiosqlite aiosqlite
pytest pytestCheckHook
pytestcov pytestcov
typing-extensions
]; ];
checkPhase = '' pythonImportsCheck = [ "orm" ];
PYTHONPATH=$PYTHONPATH:. pytest
'';
meta = with lib; { meta = with lib; {
description = "An async ORM"; description = "An async ORM";