1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiohttp,
7 async-timeout,
8 beautifulsoup4,
9}:
10
11buildPythonPackage rec {
12 pname = "pyebox";
13 version = "1.1.4";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "titilambert";
18 repo = "pyebox";
19 tag = version;
20 hash = "sha256-87u16rJmwdGiUz3DxThCsNXnz0tpH/9i26eyYwSqpDg=";
21 };
22
23 postPatch = ''
24 substituteInPlace requirements.txt \
25 --replace-fail "bs4" "beautifulsoup4"
26 '';
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 aiohttp
32 async-timeout
33 beautifulsoup4
34 ];
35
36 # Package has no tests
37 doCheck = false;
38
39 pythonImportsCheck = [ "pyebox" ];
40
41 meta = {
42 description = "Get your EBox consumption (www.ebox.ca)";
43 homepage = "https://github.com/titilambert/pyebox";
44 license = lib.licenses.asl20;
45 maintainers = [ lib.maintainers.jamiemagee ];
46 };
47}