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