2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
beautifulsoup4,
|
|
|
|
pyrate-limiter,
|
|
|
|
requests,
|
|
|
|
toolz,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "moddb";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.9.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ClementJ18";
|
|
|
|
repo = "moddb";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-2t5QQAmSLOrdNCl0XdsFPdP2UF10/qq69DovqeQ1Vt8=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
pyrate-limiter
|
|
|
|
requests
|
|
|
|
toolz
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "moddb" ];
|
|
|
|
|
|
|
|
doCheck = false; # Tests try to access the internet.
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python scrapper to access ModDB mods, games and more as objects";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/ClementJ18/moddb";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kranzes ];
|
|
|
|
};
|
|
|
|
}
|