1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "tendo"; 12 version = "0.4.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "pycontribs"; 17 repo = "tendo"; 18 tag = "v${version}"; 19 hash = "sha256-ZOozMGxAKcEtmUEzHCFSojKc+9Ha+T2MOTmMvdMqNuQ="; 20 }; 21 22 patches = [ 23 ./fix-python-313-build.patch 24 ]; 25 26 postPatch = '' 27 # marken broken and not required 28 sed -i '/setuptools_scm_git_archive/d' pyproject.toml 29 # unused 30 substituteInPlace setup.cfg \ 31 --replace-fail "six" "" 32 ''; 33 34 nativeBuildInputs = [ 35 setuptools 36 setuptools-scm 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "tendo" ]; 42 43 meta = with lib; { 44 description = "Adds basic functionality that is not provided by Python"; 45 homepage = "https://github.com/pycontribs/tendo"; 46 changelog = "https://github.com/pycontribs/tendo/releases/tag/v${version}"; 47 license = licenses.psfl; 48 maintainers = with maintainers; [ SuperSandro2000 ]; 49 }; 50}