mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 07:16:34 +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
43 lines
937 B
Nix
43 lines
937 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
multidict,
|
|
xmljson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "latex2mathml";
|
|
version = "3.78.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "roniemartinez";
|
|
repo = "latex2mathml";
|
|
tag = version;
|
|
hash = "sha256-VhBq6KSiomFPue9yzYhU68gH+MkHovVi8VEEFi3yUZ8=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
multidict
|
|
xmljson
|
|
];
|
|
|
|
pythonImportsCheck = [ "latex2mathml" ];
|
|
|
|
meta = {
|
|
description = "Pure Python library for LaTeX to MathML conversion";
|
|
homepage = "https://github.com/roniemartinez/latex2mathml";
|
|
changelog = "https://github.com/roniemartinez/latex2mathml/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "latex2mathml";
|
|
maintainers = with lib.maintainers; [ sfrijters ];
|
|
};
|
|
}
|