depot/third_party/nixpkgs/pkgs/development/python-modules/moddb/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

47 lines
900 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonRelaxDepsHook
, beautifulsoup4
, pyrate-limiter
, requests
, toolz
}:
buildPythonPackage rec {
pname = "moddb";
version = "0.9.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ClementJ18";
repo = "moddb";
rev = "v${version}";
hash = "sha256-2t5QQAmSLOrdNCl0XdsFPdP2UF10/qq69DovqeQ1Vt8=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
beautifulsoup4
pyrate-limiter
requests
toolz
];
pythonRelaxDeps = true;
pythonImportsCheck = [ "moddb" ];
doCheck = false; # Tests try to access the internet.
meta = with lib; {
description = "A Python scrapper to access ModDB mods, games and more as objects";
homepage = "https://github.com/ClementJ18/moddb";
license = licenses.mit;
maintainers = with maintainers; [ kranzes ];
};
}