pythonPackages.orm: Cleanup, use pytestCheckHook

This commit is contained in:
Sandro Jäckel 2021-01-04 10:37:46 +01:00
parent 2365b3c2cd
commit b6cc16250e
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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";