python311Packages.robotframework-databaselibrary: run tests

This commit is contained in:
Robert Schütz 2024-01-29 14:46:59 -08:00
parent ee690c0c4b
commit 0bd46588e6

View File

@ -1,9 +1,10 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, setuptools
, robotframework
, robotframework-excellib
, pytestCheckHook
}:
buildPythonPackage rec {
@ -11,9 +12,11 @@ buildPythonPackage rec {
version = "1.4.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-/n4+xA/eLrcVEwlWyLQLrkX5waYaJKRkphwT22b7hTU=";
src = fetchFromGitHub {
owner = "MarketSquare";
repo = "Robotframework-Database-Library";
rev = "refs/tags/v${version}";
hash = "sha256-BCVXmlrYOaG+Dh67OytUfQnJ9Ak3MtHR3swOXdAN/HU=";
};
nativeBuildInputs = [
@ -26,12 +29,15 @@ buildPythonPackage rec {
robotframework-excellib
];
# unit tests are impure
doCheck = false;
pythonImportsCheck = [ "DatabaseLibrary" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Database Library contains utilities meant for Robot Framework";
homepage = "https://github.com/franz-see/Robotframework-Database-Library";
homepage = "https://github.com/MarketSquare/Robotframework-Database-Library";
license = licenses.asl20;
maintainers = with maintainers; [ talkara ];
};