mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, robotframework
|
|
, moretools
|
|
, path
|
|
, six
|
|
, zetup
|
|
, modeled
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.1rc4";
|
|
pname = "robotframework-tools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96";
|
|
};
|
|
|
|
nativeBuildInputs = [ zetup ];
|
|
|
|
propagatedBuildInputs = [
|
|
robotframework
|
|
moretools
|
|
path
|
|
six
|
|
modeled
|
|
];
|
|
|
|
postPatch = ''
|
|
# Remove upstream's selfmade approach to collect the dependencies
|
|
# https://github.com/userzimmermann/robotframework-tools/issues/1
|
|
substituteInPlace setup.py --replace \
|
|
"setup_requires=SETUP_REQUIRES + (zfg.SETUP_REQUIRES or [])," ""
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pytestFlagsArray = [ "test" ];
|
|
pythonImportsCheck = [ "robottools" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Tools for Robot Framework and Test Libraries";
|
|
homepage = "https://github.com/userzimmermann/robotframework-tools";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|