1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, aiohttp
6, requests
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "brunt";
12 version = "1.2.0";
13
14 disabled = pythonOlder "3.8";
15
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "e704627dc7b9c0a50c67ae90f1d320b14f99f2b2fc9bf1ef0461b141dcf1bce9";
21 };
22
23 postPatch = ''
24 sed -i '/--cov/d' setup.cfg
25 '';
26
27 propagatedBuildInputs = [
28 aiohttp
29 requests
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 ];
35
36 # tests require Brunt hardware
37 doCheck = false;
38
39 pythonImportsCheck = [ "brunt" ];
40
41 meta = {
42 description = "Unofficial Python SDK for Brunt";
43 homepage = "https://github.com/eavanvalkenburg/brunt-api";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ dotlambda ];
46 };
47}