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 postPatch = ''
23 # marken broken and not required
24 sed -i '/setuptools_scm_git_archive/d' pyproject.toml
25 # unused
26 substituteInPlace setup.cfg \
27 --replace-fail "six" ""
28 '';
29
30 nativeBuildInputs = [
31 setuptools
32 setuptools-scm
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "tendo" ];
38
39 meta = with lib; {
40 description = "Adds basic functionality that is not provided by Python";
41 homepage = "https://github.com/pycontribs/tendo";
42 changelog = "https://github.com/pycontribs/tendo/releases/tag/v${version}";
43 license = licenses.psfl;
44 maintainers = with maintainers; [ SuperSandro2000 ];
45 };
46}