1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 setuptools,
6 domdf-python-tools,
7 handy-archives,
8 packaging,
9}:
10buildPythonPackage rec {
11 pname = "dist-meta";
12 version = "0.8.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-5zuHOwg2GDXiVZLU10Ep8DU7ykRR3RK/oQqvFK9GguQ=";
18 };
19
20 build-system = [ setuptools ];
21
22 dependencies = [
23 domdf-python-tools
24 handy-archives
25 packaging
26 ];
27
28 postPatch = ''
29 substituteInPlace pyproject.toml \
30 --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
31 '';
32
33 meta = {
34 description = "Parse and create Python distribution metadata.";
35 homepage = "https://github.com/repo-helper/dist-meta";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ tyberius-prime ];
38 };
39}