Diff: https://github.com/robotframework/PythonLibCore/compare/v4.1.0...v4.1.2 Changelog: https://github.com/robotframework/PythonLibCore/blob/v4.1.1/docs/PythonLibCore-4.1.1.rst Changelog: https://github.com/robotframework/PythonLibCore/blob/v4.1.2/docs/PythonLibCore-4.1.2.rst
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytest-mockito
|
|
, pytestCheckHook
|
|
, robotframework
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "robotframework-pythonlibcore";
|
|
version = "4.1.2";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "robotframework";
|
|
repo = "PythonLibCore";
|
|
rev = "v${version}";
|
|
hash = "sha256-uS0NwyFqidhrMG7thHM0qau22B/kI16c8aXEUuNdioQ=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mockito
|
|
pytestCheckHook
|
|
robotframework
|
|
];
|
|
|
|
preCheck = ''
|
|
export PYTHONPATH="atest:utest/helpers:$PYTHONPATH"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "robotlibcore" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/robotframework/PythonLibCore/blob/${src.rev}/docs/PythonLibCore-${version}.rst";
|
|
description = "Tools to ease creating larger test libraries for Robot Framework using Python";
|
|
homepage = "https://github.com/robotframework/PythonLibCore";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|