1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pbr
5, calmjs-parse
6, certifi
7, chardet
8, idna
9, ply
10, requests
11, urllib3
12, httpretty
13, pytestCheckHook
14}:
15
16buildPythonPackage rec {
17 pname = "eebrightbox";
18 version = "0.0.6";
19
20 src = fetchFromGitHub {
21 owner = "krygal";
22 repo = "eebrightbox";
23 rev = version;
24 sha256 = "1kms240g01871qbvyc5rzf86yxsrlnfvp323jh4k35fpf45z44rr";
25 };
26
27 postPatch = ''
28 substituteInPlace requirements.txt --replace "==" ">="
29 '';
30
31 nativeBuildInputs = [
32 pbr
33 ];
34
35 PBR_VERSION = version;
36
37 propagatedBuildInputs = [
38 calmjs-parse
39 certifi
40 chardet
41 idna
42 ply
43 requests
44 urllib3
45 ];
46
47 checkInputs = [
48 httpretty
49 pytestCheckHook
50 ];
51
52 meta = with lib; {
53 description = "Connector for EE BrightBox routers";
54 homepage = "https://github.com/krygal/eebrightbox";
55 license = licenses.mit;
56 maintainers = with maintainers; [ dotlambda ];
57 };
58}