blob: 232dae5cf1d3429884374b9de58d64cab87b7fdd (
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
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
aiohttp,
requests,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "brunt";
version = "1.2.0";
disabled = pythonOlder "3.8";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "e704627dc7b9c0a50c67ae90f1d320b14f99f2b2fc9bf1ef0461b141dcf1bce9";
};
postPatch = ''
sed -i '/--cov/d' setup.cfg
'';
propagatedBuildInputs = [
aiohttp
requests
];
nativeCheckInputs = [ pytestCheckHook ];
# tests require Brunt hardware
doCheck = false;
pythonImportsCheck = [ "brunt" ];
meta = {
description = "Unofficial Python SDK for Brunt";
homepage = "https://github.com/eavanvalkenburg/brunt-api";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|