Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / platformdirs / default.nix
blob777ba72bcc2c8531918175c27b0b32f08d0c1d6c
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 = "3.10.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-Ytilbs29oxuwLfoKTXNQxlh8qBF39F2ZRK8imd57A1w=";
24   };
26   SETUPTOOLS_SCM_PRETEND_VERSION = version;
28   nativeBuildInputs = [
29     hatchling
30     hatch-vcs
31   ];
33   nativeCheckInputs = [
34     appdirs
35     pytest-mock
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [
40     "platformdirs"
41   ];
43   meta = with lib; {
44     description = "Module for determining appropriate platform-specific directories";
45     homepage = "https://platformdirs.readthedocs.io/";
46     changelog = "https://github.com/platformdirs/platformdirs/releases/tag/${version}";
47     license = licenses.mit;
48     maintainers = with maintainers; [ fab ];
49   };