python3Packages.base36: modernize

This commit is contained in:
Harinn
2026-06-06 01:18:43 +07:00
parent 6f64e7b1aa
commit 5c3201bd29
@@ -6,24 +6,26 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "base36";
version = "0.1.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "tonyseek";
repo = "python-base36";
rev = "v${version}";
sha256 = "076nmk9s0zkmgs2zqzkaqij5cmzhf4mrhivbb9n6cvz52i1mppr5";
tag = "v${finalAttrs.version}";
hash = "sha256-Jd9bQxTlb2ZsWmtHmCtx8FdWZMRqfvyFfnV+oNOs1hw=";
};
build-system = [ setuptools ];
postPatch = ''
substituteInPlace setup.cfg \
--replace "[pytest]" "[tool:pytest]" \
--replace "--pep8 --cov" ""
--replace-fail "[pytest]" "[tool:pytest]" \
--replace-fail "--pep8 --cov" ""
'';
nativeCheckInputs = [ pytestCheckHook ];
@@ -37,4 +39,4 @@ buildPythonPackage rec {
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
})