1{ lib 2, appdirs 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-mock 6, pytestCheckHook 7, pythonOlder 8, hatchling 9, hatch-vcs 10}: 11 12buildPythonPackage rec { 13 pname = "platformdirs"; 14 version = "2.5.2"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = pname; 21 repo = pname; 22 rev = version; 23 sha256 = "sha256-c7gGgqOUVYA6wYU4+nQsYYw4Gn+DpMoIq2nP8nEdPcg="; 24 }; 25 26 SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 hatchling 30 hatch-vcs 31 ]; 32 33 checkInputs = [ 34 appdirs 35 pytest-mock 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "platformdirs" 41 ]; 42 43 meta = with lib; { 44 description = "Python module for determining appropriate platform-specific directories"; 45 homepage = "https://platformdirs.readthedocs.io/"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}