depot/third_party/nixpkgs/pkgs/development/python-modules/spiderpy/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

42 lines
805 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, poetry-core
, requests
}:
buildPythonPackage rec {
pname = "spiderpy";
version = "1.7.1";
format = "pyproject";
disabled = isPy27;
src = fetchFromGitHub {
owner = "peternijssen";
repo = "spiderpy";
rev = version;
sha256 = "sha256-gQ/Y5c8+aSvoJzXI6eQ9rk0xDPxpi0xgO3xBKR+vVrY=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
];
# tests don't mock remote resources
doCheck = false;
pythonImportsCheck = [ "spiderpy.spiderapi" ];
meta = with lib; {
description = "Unofficial Python wrapper for the Spider API";
homepage = "https://www.github.com/peternijssen/spiderpy";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}