23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, beautifulsoup4
|
|
, extruct
|
|
, language-tags
|
|
, regex
|
|
, requests
|
|
, pytestCheckHook
|
|
, responses
|
|
, setuptools
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "recipe-scrapers";
|
|
version = "14.53.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hhursev";
|
|
repo = "recipe-scrapers";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-uYUzn3JlsZmzzbk740aD3PW3OuGqdsAfU7HlYX5kPrY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
extruct
|
|
language-tags
|
|
regex
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
disabledTests = [
|
|
# Fixture is broken
|
|
"test_instructions"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"recipe_scrapers"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python package for scraping recipes data";
|
|
homepage = "https://github.com/hhursev/recipe-scrapers";
|
|
changelog = "https://github.com/hhursev/recipe-scrapers/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|