mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
34 lines
718 B
Nix
34 lines
718 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 ];
|
|
};
|
|
}
|