about summary refs log tree commit diff
path: root/pkgs/development/python-modules/whey/default.nix
blob: 9c7cad7a1039e5ccd16d2a39d1a1b615b3628560 (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  buildPythonPackage,
  fetchPypi,
  lib,
  setuptools,
  attrs,
  click,
  consolekit,
  dist-meta,
  dom-toml,
  domdf-python-tools,
  handy-archives,
  natsort,
  packaging,
  pyproject-parser,
  shippinglabel,
}:
buildPythonPackage rec {
  pname = "whey";
  version = "0.1.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-l72fjczuuDXg/cDiqJ7roNVm4X+au+1u4AA8Szs1bNo=";
  };

  build-system = [ setuptools ];

  dependencies = [
    attrs
    click
    consolekit
    dist-meta
    dom-toml
    domdf-python-tools
    handy-archives
    natsort
    packaging
    pyproject-parser
    shippinglabel
  ];

  nativeCheckInputs = [ ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
  '';

  meta = {
    description = "A simple Python wheel builder for simple projects.";
    homepage = "https://pypi.org/project/whey";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ tyberius-prime ];
  };
}