1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 setuptools,
6 dom-toml,
7 whey,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "whey-pth";
13 version = "0.0.6";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "repo-helper";
18 repo = "whey-pth";
19 tag = "v${version}";
20 hash = "sha256-A+bXB9F8FD+A1iRuETIxP12bkH/5NKcx01ERXJZAj+Q=";
21 };
22
23 postPatch = ''
24 substituteInPlace pyproject.toml \
25 --replace-fail 'setuptools!=61.*,<=67.1.0,>=40.6.0' setuptools
26 '';
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 dom-toml
32 whey
33 ];
34
35 pythonImportsCheck = [ "whey_pth" ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 # missing dependency coincidence
42 doCheck = false;
43
44 meta = {
45 description = "Extension to whey to support .pth files";
46 homepage = "https://github.com/repo-helper/whey-pth";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ tyberius-prime ];
49 };
50}