2022-10-06 18:32:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, beautifulsoup4
|
|
|
|
, extruct
|
|
|
|
, language-tags
|
|
|
|
, regex
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
|
|
|
, responses
|
2023-01-20 10:41:00 +00:00
|
|
|
, setuptools
|
2022-10-06 18:32:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recipe-scrapers";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "14.26.0";
|
|
|
|
format = "pyproject";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hhursev";
|
|
|
|
repo = "recipe-scrapers";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-U7A9HmkXPcuYEsY/uGUVh3LYHDYhV/uizELh1/vXG+U=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
extruct
|
|
|
|
language-tags
|
|
|
|
regex
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-06 18:32:54 +00:00
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# This is not actual code, just some pre-written boiler-plate template
|
|
|
|
"templates/test_scraper.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "recipe_scrapers" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package for scraping recipes data ";
|
|
|
|
homepage = "https://github.com/hhursev/recipe-scrapers";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|