3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pylibgen/default.nix

34 lines
718 B
Nix
Raw Normal View History

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