2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub
|
2021-04-26 19:14:03 +00:00
|
|
|
, requests, tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
, nose, vcrpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "habanero";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "0.7.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Install from Pypi is failing because of a missing file (Changelog.rst)
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sckott";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "1d8yj9xz5qabcj57rpjzvg0jcscvzrpb0739mll29nijbsaimfr1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
propagatedBuildInputs = [ requests tqdm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|