blob: 2c2fe3945b09a9116022d7916055be6d0df085c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ 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 [])," ""
'';
checkInputs = [ 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 ];
};
}
|