mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
0215034f25
when they already rely on SRI hashes.
43 lines
803 B
Nix
43 lines
803 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spiderpy";
|
|
version = "1.7.2";
|
|
format = "pyproject";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "peternijssen";
|
|
repo = "spiderpy";
|
|
rev = version;
|
|
hash = "sha256-Yujy8HSMbK2DQ/913r2c74hKPYDfcHFKq04ysqxG+go=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|