summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/domdf-python-tools/default.nix
blob: 832674256a0e458db7153a5f68c271d04017ec4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  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 ];
  };
}