2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
appdirs,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "platformdirs";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.2.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "pyproject";
|
2022-01-26 04:04:25 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-DjRqOIkyhkA3Z1gl2o78R4kp23qJBj+pRmDBld8AbDI=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
2021-08-22 07:53:02 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-22 07:53:02 +00:00
|
|
|
appdirs
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "platformdirs" ];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
description = "Module for determining appropriate platform-specific directories";
|
2021-08-22 07:53:02 +00:00
|
|
|
homepage = "https://platformdirs.readthedocs.io/";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/platformdirs/platformdirs/releases/tag/${version}";
|
2021-08-22 07:53:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|