1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 setuptools,
6 natsort,
7 typing-extensions,
8}:
9buildPythonPackage rec {
10 pname = "domdf-python-tools";
11 version = "3.9.0";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit version;
16 pname = "domdf_python_tools";
17 hash = "sha256-H4qWlxF4MzpV4IPjVhDXaIzXYgrSuZeQFk4fwaNhTBg=";
18 };
19
20 build-system = [ setuptools ];
21
22 dependencies = [
23 natsort
24 typing-extensions
25 ];
26
27 postPatch = ''
28 substituteInPlace pyproject.toml \
29 --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
30 '';
31
32 meta = {
33 description = "Helpful functions for Python";
34 homepage = "https://github.com/domdfcoding/domdf_python_tools";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ tyberius-prime ];
37 };
38}