mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
44 lines
882 B
Nix
44 lines
882 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
pytest-mypy-plugins,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lxml-stubs";
|
|
version = "0.5.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxml";
|
|
repo = "lxml-stubs";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-OwaPnCr0vylhdAvMMUfGV6DjZEh7Q71pgMOt66urg5I=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mypy-plugins
|
|
];
|
|
|
|
disabledTests = [
|
|
# Output difference, https://github.com/lxml/lxml-stubs/issues/101
|
|
"etree_element_iterchildren"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Type stubs for the lxml package";
|
|
homepage = "https://github.com/lxml/lxml-stubs";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
};
|
|
}
|