`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / whey-pth / default.nix
bloba389860d1e2d6a493add2f85ae11fc8913302297
2   buildPythonPackage,
3   fetchFromGitHub,
4   lib,
5   setuptools,
6   dom-toml,
7   whey,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "whey-pth";
13   version = "0.0.6";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "repo-helper";
18     repo = "whey-pth";
19     tag = "v${version}";
20     hash = "sha256-A+bXB9F8FD+A1iRuETIxP12bkH/5NKcx01ERXJZAj+Q=";
21   };
23   postPatch = ''
24     substituteInPlace pyproject.toml \
25       --replace-fail 'setuptools!=61.*,<=67.1.0,>=40.6.0' setuptools
26   '';
28   build-system = [ setuptools ];
30   dependencies = [
31     dom-toml
32     whey
33   ];
35   pythonImportsCheck = [ "whey_pth" ];
37   nativeCheckInputs = [
38     pytestCheckHook
39   ];
41   # missing dependency coincidence
42   doCheck = false;
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   };