`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / pathable / default.nix
blob2cb4b5c6b566037a23abda42fbbf93882c654bd8
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   poetry-core,
8 }:
10 buildPythonPackage rec {
11   pname = "pathable";
12   version = "0.4.3";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "p1c2u";
19     repo = pname;
20     tag = version;
21     hash = "sha256-4QRFjbeaggoEPVGAmSY+qVMNW0DKqarNfRXaH6B58ew=";
22   };
24   nativeBuildInputs = [ poetry-core ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   postPatch = ''
29     sed -i "/--cov/d" pyproject.toml
30   '';
32   pythonImportsCheck = [ "pathable" ];
34   meta = with lib; {
35     description = "Library for object-oriented paths";
36     homepage = "https://github.com/p1c2u/pathable";
37     changelog = "https://github.com/p1c2u/pathable/releases/tag/${version}";
38     license = licenses.asl20;
39     maintainers = with maintainers; [ fab ];
40   };