1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, beautifulsoup4
5, extruct
6, language-tags
7, regex
8, requests
9, pytestCheckHook
10, responses
11, setuptools
12}:
13
14buildPythonPackage rec {
15 pname = "recipe-scrapers";
16 version = "14.43.0";
17 format = "pyproject";
18
19 src = fetchFromGitHub {
20 owner = "hhursev";
21 repo = "recipe-scrapers";
22 rev = "refs/tags/${version}";
23 hash = "sha256-ik/ADmu6yGY7xWXCAn0kcWJphANIIwM8QKWjm9xoVYQ=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 ];
29
30 propagatedBuildInputs = [
31 beautifulsoup4
32 extruct
33 language-tags
34 regex
35 requests
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 responses
41 ];
42
43 disabledTestPaths = [
44 # This is not actual code, just some pre-written boiler-plate template
45 "templates/test_scraper.py"
46 ];
47
48 pythonImportsCheck = [ "recipe_scrapers" ];
49
50 meta = with lib; {
51 description = "Python package for scraping recipes data ";
52 homepage = "https://github.com/hhursev/recipe-scrapers";
53 license = licenses.mit;
54 maintainers = with maintainers; [ ambroisie ];
55 };
56}