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
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "habanero";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.0.0";
|
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}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "0lhbd5c4sypcd65nh4cgxddsqrxwg89nn1qiii6m5l4fzsvblggv";
|
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
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
# almost the entirety of the test suite makes network calls
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"test/test-filters.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
vcrpy
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python interface to Library Genesis";
|
|
|
|
homepage = "https://habanero.readthedocs.io/en/latest/";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.nico202 ];
|
|
|
|
};
|
|
|
|
}
|