2025-07-09 17:01:23 +03:00

49 lines
787 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
latexcodec,
pyyaml,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pybtex";
version = "0.25.1";
pyproject = true;
src = fetchPypi {
inherit version pname;
sha256 = "sha256-nq+QJnx+g+Ilr4n+plw3Cvv2X0WCINOUap4wSeHspJE=";
};
build-system = [
setuptools
];
dependencies = [
latexcodec
pyyaml
];
pythonImportsCheck = [ "pybtex" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
homepage = "https://pybtex.org/";
changelog = "https://bitbucket.org/pybtex-devs/pybtex/src/master/CHANGES";
description = "BibTeX-compatible bibliography processor written in Python";
license = lib.licenses.mit;
};
}