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

33 lines
720 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, pythonOlder
, requests
, pytest
, pre-commit
}:
buildPythonPackage rec {
pname = "pylibgen";
version = "2.0.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "joshuarli";
repo = pname;
rev = "v${version}";
sha256 = "1a9vhkgnkiwkicr2s287254mrkpnw9jq5r63q820dp3h74ba4kl1";
};
propagatedBuildInputs = [ requests ];
checkInputs = [ pytest pre-commit ];
# literally every tests does a network call
doCheck = false;
meta = with lib; {
description = "Python interface to Library Genesis";
homepage = "https://pypi.org/project/pylibgen/";
license = licenses.mit;
maintainers = [ maintainers.nico202 ];
};
}