2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, appdirs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-01-20 10:41:00 +00:00
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
2021-08-22 07:53:02 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "platformdirs";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.10.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}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Ytilbs29oxuwLfoKTXNQxlh8qBF39F2ZRK8imd57A1w=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2022-01-26 04:04:25 +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 ];
|
|
|
|
};
|
|
|
|
}
|