1{ buildPythonPackage, lib, fetchFromGitHub
2, requests
3, nose, vcrpy
4}:
5
6buildPythonPackage rec {
7 pname = "habanero";
8 version = "0.6.0";
9
10 # Install from Pypi is failing because of a missing file (Changelog.rst)
11 src = fetchFromGitHub {
12 owner = "sckott";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "1l2cgl6iiq8jff2w2pib6w8dwaj8344crhwsni2zzq0p44dwi13d";
16 };
17
18 propagatedBuildInputs = [ requests ];
19
20 checkInputs = [ nose vcrpy ];
21 checkPhase = "make test";
22
23 meta = {
24 description = "Python interface to Library Genesis";
25 homepage = http://habanero.readthedocs.io/en/latest/;
26 license = lib.licenses.mit;
27 maintainers = [ lib.maintainers.nico202 ];
28 };
29}