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