summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyebox/default.nix
blob: c55e49ff53fe221c0630ee400ad14e40f004e6f7 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  async-timeout,
  beautifulsoup4,
}:

buildPythonPackage rec {
  pname = "pyebox";
  version = "1.1.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "titilambert";
    repo = "pyebox";
    tag = version;
    hash = "sha256-87u16rJmwdGiUz3DxThCsNXnz0tpH/9i26eyYwSqpDg=";
  };

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace-fail "bs4" "beautifulsoup4"
  '';

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    async-timeout
    beautifulsoup4
  ];

  # Package has no tests
  doCheck = false;

  pythonImportsCheck = [ "pyebox" ];

  meta = {
    description = "Get your EBox consumption (www.ebox.ca)";
    homepage = "https://github.com/titilambert/pyebox";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}