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
|
2024-01-25 14:12:00 +00:00
|
|
|
, pythonOlder
|
2022-10-06 18:32:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recipe-scrapers";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "14.54.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
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}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Q7ubT7SBHNxyvfqFhDmBjnW7ssoXBsMZR+eYg5CntHY=";
|
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
|
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Fixture is broken
|
|
|
|
"test_instructions"
|
2022-10-06 18:32:54 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"recipe_scrapers"
|
|
|
|
];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-25 14:12:00 +00:00
|
|
|
description = "Python package for scraping recipes data";
|
2022-10-06 18:32:54 +00:00
|
|
|
homepage = "https://github.com/hhursev/recipe-scrapers";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/hhursev/recipe-scrapers/releases/tag/${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|