1{ lib 2, appdirs 3, buildPythonPackage 4, fetchFromGitHub 5, hatch-vcs 6, hatchling 7, pytest-mock 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "platformdirs"; 14 version = "3.10.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = pname; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-Ytilbs29oxuwLfoKTXNQxlh8qBF39F2ZRK8imd57A1w="; 24 }; 25 26 SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 hatchling 30 hatch-vcs 31 ]; 32 33 nativeCheckInputs = [ 34 appdirs 35 pytest-mock 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "platformdirs" 41 ]; 42 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 }; 50}