Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / platformdirs / default.nix
blob7c45f33cb598c58460d0ae626a5fcf7600a1a26e
1 { lib
2 , appdirs
3 , buildPythonPackage
4 , fetchFromGitHub
5 , hatch-vcs
6 , hatchling
7 , pytest-mock
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "platformdirs";
14   version = "4.2.0";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = pname;
21     repo = pname;
22     rev = "refs/tags/${version}";
23     hash = "sha256-DjRqOIkyhkA3Z1gl2o78R4kp23qJBj+pRmDBld8AbDI=";
24   };
26   nativeBuildInputs = [
27     hatchling
28     hatch-vcs
29   ];
31   nativeCheckInputs = [
32     appdirs
33     pytest-mock
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "platformdirs"
39   ];
41   meta = with lib; {
42     description = "Module for determining appropriate platform-specific directories";
43     homepage = "https://platformdirs.readthedocs.io/";
44     changelog = "https://github.com/platformdirs/platformdirs/releases/tag/${version}";
45     license = licenses.mit;
46     maintainers = with maintainers; [ fab ];
47   };