mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 05:57:04 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
html-text,
|
|
jstyleson,
|
|
lxml,
|
|
mf2py,
|
|
mock,
|
|
pyrdfa3,
|
|
pytestCheckHook,
|
|
rdflib,
|
|
setuptools,
|
|
six,
|
|
w3lib,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "extruct";
|
|
version = "0.18.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scrapinghub";
|
|
repo = "extruct";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-hUSlIlWxrsxGLCE8/DAGSqxx9+7TEkynmXrVnXGjDQ8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
html-text
|
|
jstyleson
|
|
lxml
|
|
mf2py
|
|
pyrdfa3
|
|
rdflib
|
|
six
|
|
w3lib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "extruct" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError: Lists differ
|
|
"test_microformat"
|
|
"test_umicroformat"
|
|
];
|
|
|
|
meta = {
|
|
description = "Extract embedded metadata from HTML markup";
|
|
mainProgram = "extruct";
|
|
homepage = "https://github.com/scrapinghub/extruct";
|
|
changelog = "https://github.com/scrapinghub/extruct/blob/v${finalAttrs.version}/HISTORY.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ ambroisie ];
|
|
};
|
|
})
|