nixpkgs/pkgs/development/python-modules/appdirs/default.nix
Fabian Affolter 7d6f31bf6f python312Packages.appdirs: refactor
- enable tests
- add pythonImportsCheck
- switch to pypa builder
2024-10-13 11:09:49 +02:00

36 lines
754 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "appdirs";
version = "1.4.4";
pypoject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
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 = [ ];
};
}