2021-08-19 10:02:01 +02:00
|
|
|
{ lib
|
|
|
|
, appdirs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-04-23 11:41:09 +02:00
|
|
|
, hatchling
|
|
|
|
, hatch-vcs
|
2021-08-19 10:02:01 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "platformdirs";
|
2022-11-12 18:30:14 +01:00
|
|
|
version = "2.5.3";
|
2022-04-23 11:41:09 +02:00
|
|
|
format = "pyproject";
|
2021-12-30 10:07:48 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-19 10:02:01 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-11-12 18:30:14 +01:00
|
|
|
sha256 = "sha256-OAvhbgmwGhElszUPksXkOgB5Dp/Wcf4s8807CcT7eyM=";
|
2021-08-19 10:02:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-04-23 11:41:09 +02:00
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
2021-08-19 10:02:01 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
appdirs
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-30 10:07:48 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"platformdirs"
|
|
|
|
];
|
2021-08-19 10:02:01 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for determining appropriate platform-specific directories";
|
|
|
|
homepage = "https://platformdirs.readthedocs.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|