Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 59 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 beautifulsoup4, 6 extruct, 7 language-tags, 8 regex, 9 requests, 10 pytestCheckHook, 11 responses, 12 setuptools, 13 pythonOlder, 14}: 15 16buildPythonPackage rec { 17 pname = "recipe-scrapers"; 18 version = "14.56.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "hhursev"; 25 repo = "recipe-scrapers"; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-+9oQLCuR+rRCG5tnyofHd8WMkQ5QPsWfLCnwIDU5d9o="; 28 }; 29 30 nativeBuildInputs = [ setuptools ]; 31 32 propagatedBuildInputs = [ 33 beautifulsoup4 34 extruct 35 language-tags 36 regex 37 requests 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 responses 43 ]; 44 45 disabledTests = [ 46 # Fixture is broken 47 "test_instructions" 48 ]; 49 50 pythonImportsCheck = [ "recipe_scrapers" ]; 51 52 meta = with lib; { 53 description = "Python package for scraping recipes data"; 54 homepage = "https://github.com/hhursev/recipe-scrapers"; 55 changelog = "https://github.com/hhursev/recipe-scrapers/releases/tag/${version}"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ ambroisie ]; 58 }; 59}