Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 29 lines 699 B view raw
1{ buildPythonPackage, lib, fetchFromGitHub 2, requests 3, nose, vcrpy 4}: 5 6buildPythonPackage rec { 7 pname = "habanero"; 8 version = "0.6.0"; 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 = "1l2cgl6iiq8jff2w2pib6w8dwaj8344crhwsni2zzq0p44dwi13d"; 16 }; 17 18 propagatedBuildInputs = [ requests ]; 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}