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

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

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

  propagatedBuildInputs = [ requests ];

  checkInputs = [ nose vcrpy ];
  checkPhase = "make test";

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