summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/whey-pth/default.nix
blob: a389860d1e2d6a493add2f85ae11fc8913302297 (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
39
40
41
42
43
44
45
46
47
48
49
50
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  setuptools,
  dom-toml,
  whey,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "whey-pth";
  version = "0.0.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "repo-helper";
    repo = "whey-pth";
    tag = "v${version}";
    hash = "sha256-A+bXB9F8FD+A1iRuETIxP12bkH/5NKcx01ERXJZAj+Q=";
  };

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

  build-system = [ setuptools ];

  dependencies = [
    dom-toml
    whey
  ];

  pythonImportsCheck = [ "whey_pth" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  # missing dependency coincidence
  doCheck = false;

  meta = {
    description = "Extension to whey to support .pth files";
    homepage = "https://github.com/repo-helper/whey-pth";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ tyberius-prime ];
  };
}