1{ buildPythonPackage, lib, fetchFromGitHub 2, requests, tqdm 3, nose, vcrpy 4}: 5 6buildPythonPackage rec { 7 pname = "habanero"; 8 version = "0.7.4"; 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 = "1d8yj9xz5qabcj57rpjzvg0jcscvzrpb0739mll29nijbsaimfr1"; 16 }; 17 18 propagatedBuildInputs = [ requests tqdm ]; 19 20 checkInputs = [ nose vcrpy ]; 21 checkPhase = "make test"; 22 23 meta = { 24 description = "Python interface to Library Genesis"; 25 homepage = "https://habanero.readthedocs.io/en/latest/"; 26 license = lib.licenses.mit; 27 maintainers = [ lib.maintainers.nico202 ]; 28 }; 29}