mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 23:13:56 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
39 lines
697 B
Nix
39 lines
697 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lxml
|
|
, six
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "html-text";
|
|
version = "0.5.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TeamHG-Memex";
|
|
repo = "html-text";
|
|
rev = version;
|
|
hash = "sha256-jw/hpz0QfcgP5OEJcmre0h1OzOfpPtaROxHm+YUqces=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
lxml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [ "html_text" ];
|
|
|
|
meta = with lib; {
|
|
description = "Extract text from HTML";
|
|
homepage = "https://github.com/TeamHG-Memex/html-text";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|