1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 setuptools,
6 attrs,
7 click,
8 consolekit,
9 dist-meta,
10 dom-toml,
11 domdf-python-tools,
12 handy-archives,
13 natsort,
14 packaging,
15 pyproject-parser,
16 shippinglabel,
17}:
18buildPythonPackage rec {
19 pname = "whey";
20 version = "0.1.1";
21 pyproject = true;
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-l72fjczuuDXg/cDiqJ7roNVm4X+au+1u4AA8Szs1bNo=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 attrs
32 click
33 consolekit
34 dist-meta
35 dom-toml
36 domdf-python-tools
37 handy-archives
38 natsort
39 packaging
40 pyproject-parser
41 shippinglabel
42 ];
43
44 postPatch = ''
45 substituteInPlace pyproject.toml \
46 --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
47 '';
48
49 meta = {
50 description = "A simple Python wheel builder for simple projects.";
51 homepage = "https://pypi.org/project/whey";
52 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [ tyberius-prime ];
54 };
55}