python312Packages.appdirs: refactor

- enable tests
- add pythonImportsCheck
- switch to pypa builder
This commit is contained in:
Fabian Affolter 2024-09-30 10:17:43 +02:00 committed by Martin Weinelt
parent 082491db5f
commit 7d6f31bf6f

View File

@ -2,21 +2,34 @@
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "appdirs";
version = "1.4.4";
format = "setuptools";
pypoject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41";
hash = "sha256-fV0BZ7KxuoIWR2Fq9Gp0nRxlN0DdDSQVEA/ibiev30E=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "appdirs" ];
meta = {
description = "Python module for determining appropriate platform-specific dirs";
homepage = "https://github.com/ActiveState/appdirs";
changelog = "https://github.com/ActiveState/appdirs/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = [ ];
};
}