mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, beautifulsoup4
|
|
, extruct
|
|
, language-tags
|
|
, regex
|
|
, requests
|
|
, pytestCheckHook
|
|
, responses
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "recipe-scrapers";
|
|
version = "14.26.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hhursev";
|
|
repo = "recipe-scrapers";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-U7A9HmkXPcuYEsY/uGUVh3LYHDYhV/uizELh1/vXG+U=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
extruct
|
|
language-tags
|
|
regex
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# This is not actual code, just some pre-written boiler-plate template
|
|
"templates/test_scraper.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "recipe_scrapers" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python package for scraping recipes data ";
|
|
homepage = "https://github.com/hhursev/recipe-scrapers";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|