about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/habanero/default.nix
blob: 9dc3193957f6c828e0d6f6fe2ae76cbe257e5514 (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
{ buildPythonPackage, lib, fetchFromGitHub
, requests, tqdm
, nose, vcrpy
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "habanero";
  version = "1.0.0";

  # Install from Pypi is failing because of a missing file (Changelog.rst)
  src = fetchFromGitHub {
    owner = "sckott";
    repo = pname;
    rev = "v${version}";
    sha256 = "0lhbd5c4sypcd65nh4cgxddsqrxwg89nn1qiii6m5l4fzsvblggv";
  };

  propagatedBuildInputs = [ requests tqdm ];

  # almost the entirety of the test suite makes network calls
  pytestFlagsArray = [
    "test/test-filters.py"
  ];

  checkInputs = [
    pytestCheckHook
    vcrpy
  ];

  meta = {
    description = "Python interface to Library Genesis";
    homepage = "https://habanero.readthedocs.io/en/latest/";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.nico202 ];
  };
}