2018-02-09 15:41:24 +00:00
|
|
|
{ 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";
|
2019-07-10 20:52:51 +01:00
|
|
|
homepage = https://habanero.readthedocs.io/en/latest/;
|
2018-02-09 15:41:24 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.nico202 ];
|
|
|
|
};
|
|
|
|
}
|