depot/third_party/nixpkgs/pkgs/development/python-modules/domdf-python-tools/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

38 lines
798 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
natsort,
typing-extensions,
}:
buildPythonPackage rec {
pname = "domdf-python-tools";
version = "3.9.0";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "domdf_python_tools";
hash = "sha256-H4qWlxF4MzpV4IPjVhDXaIzXYgrSuZeQFk4fwaNhTBg=";
};
build-system = [ setuptools ];
dependencies = [
natsort
typing-extensions
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
'';
meta = {
description = "Helpful functions for Python";
homepage = "https://github.com/domdfcoding/domdf_python_tools";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tyberius-prime ];
};
}