depot/third_party/nixpkgs/pkgs/development/python-modules/recipe-scrapers/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

66 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
beautifulsoup4,
extruct,
language-tags,
regex,
requests,
pytestCheckHook,
responses,
setuptools,
pythonOlder,
nixosTests,
}:
buildPythonPackage rec {
pname = "recipe-scrapers";
version = "15.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "hhursev";
repo = "recipe-scrapers";
rev = "refs/tags/${version}";
hash = "sha256-PCtvDd/1eAbo1aHUPMu0XHNHMwBTbjZmdSNrY2PmxQc=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
beautifulsoup4
extruct
language-tags
regex
requests
];
nativeCheckInputs = [
pytestCheckHook
responses
];
disabledTests = [
# Fixture is broken
"test_instructions"
];
pythonImportsCheck = [ "recipe_scrapers" ];
passthru = {
tests = {
inherit (nixosTests) mealie tandoor-recipes;
};
};
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 ];
};
}