Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 50 lines 970 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, beautifulsoup4 5, extruct 6, language-tags 7, regex 8, requests 9, pytestCheckHook 10, responses 11}: 12 13buildPythonPackage rec { 14 pname = "recipe-scrapers"; 15 version = "14.14.0"; 16 17 src = fetchFromGitHub { 18 owner = "hhursev"; 19 repo = "recipe-scrapers"; 20 rev = version; 21 sha256 = "sha256-3qrjNd1jX4JP3qG9YX8MQqwPh8cvfkZa1tEk0uCwego="; 22 }; 23 24 propagatedBuildInputs = [ 25 beautifulsoup4 26 extruct 27 language-tags 28 regex 29 requests 30 ]; 31 32 checkInputs = [ 33 pytestCheckHook 34 responses 35 ]; 36 37 disabledTestPaths = [ 38 # This is not actual code, just some pre-written boiler-plate template 39 "templates/test_scraper.py" 40 ]; 41 42 pythonImportsCheck = [ "recipe_scrapers" ]; 43 44 meta = with lib; { 45 description = "Python package for scraping recipes data "; 46 homepage = "https://github.com/hhursev/recipe-scrapers"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ ambroisie ]; 49 }; 50}