blob: 70a852bfb1a0182a8a3ec1c75263dd738ca48b1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, beautifulsoup4
, extruct
, language-tags
, regex
, requests
, pytestCheckHook
, responses
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "recipe-scrapers";
version = "14.55.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "hhursev";
repo = "recipe-scrapers";
rev = "refs/tags/${version}";
hash = "sha256-HjR4Lwlcrpeqv6BXI+aYCL9e7ZTaTa522z0lSW03wW0=";
};
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 ];
};
}
|