Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / recipe-scrapers / default.nix
blobc5b7fcb88b762b6f9e43fe4a627440bc23e47352
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , beautifulsoup4
5 , extruct
6 , language-tags
7 , regex
8 , requests
9 , pytestCheckHook
10 , responses
11 , setuptools
14 buildPythonPackage rec {
15   pname = "recipe-scrapers";
16   version = "14.46.0";
17   format = "pyproject";
19   src = fetchFromGitHub {
20     owner = "hhursev";
21     repo = "recipe-scrapers";
22     rev = "refs/tags/${version}";
23     hash = "sha256-XCcunwqmcvPC5AVxR9mit06BRDTYfu/CeTXg3IH7Dy0=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     beautifulsoup4
32     extruct
33     language-tags
34     regex
35     requests
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     responses
41   ];
43   disabledTestPaths = [
44     # This is not actual code, just some pre-written boiler-plate template
45     "templates/test_scraper.py"
46   ];
48   pythonImportsCheck = [ "recipe_scrapers" ];
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   };