nixpkgs/pkgs/development/python-modules/platformdirs/default.nix
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00

44 lines
883 B
Nix

{
lib,
appdirs,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "platformdirs";
version = "4.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tox-dev";
repo = "platformdirs";
tag = version;
hash = "sha256-wDhhfS8r0fCYOUJUu2kwH+fyTPmS+aPUiqWN21Fedoc=";
};
build-system = [
hatchling
hatch-vcs
];
nativeCheckInputs = [
appdirs
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "platformdirs" ];
meta = {
description = "Module for determining appropriate platform-specific directories";
homepage = "https://platformdirs.readthedocs.io/";
changelog = "https://github.com/tox-dev/platformdirs/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}