mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
32 lines
620 B
Nix
32 lines
620 B
Nix
{ buildPythonPackage, lib, fetchPypi
|
|
, isPy3k
|
|
, requests
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylibgen";
|
|
version = "2.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3c2a82b47cb7225dcf4ecea27081b0185ae4d195499140cdbb9597d914e1ae9e";
|
|
};
|
|
|
|
disabled = !isPy3k;
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# no tests in PyPI tarball
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python interface to Library Genesis";
|
|
homepage = https://pypi.org/project/pylibgen/;
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.nico202 ];
|
|
};
|
|
}
|