depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-spelling/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

47 lines
836 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, importlib-metadata
, sphinx
, pyenchant
, pbr
}:
buildPythonPackage rec {
pname = "sphinxcontrib-spelling";
version = "7.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-KSzX4fc6djRRaTtNSMm97RUQhPapHlM3cz6fqHFdIOw=";
};
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
sphinx
pyenchant
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
# No tests included
doCheck = false;
pythonImportsCheck = [
"sphinxcontrib.spelling"
];
meta = with lib; {
description = "Sphinx spelling extension";
homepage = "https://github.com/sphinx-contrib/spelling";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}