depot/third_party/nixpkgs/pkgs/development/python-modules/habanero/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
699 B
Nix

{ 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 ];
};
}