blob: 2065105ac8b1b4e6780b14268e98ce642e8e4524 (
plain)
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
|
{
lib,
fetchPypi,
buildPythonPackage,
# build-system
setuptools,
setuptools-scm,
# tests
pytest7CheckHook,
}:
buildPythonPackage rec {
pname = "makefun";
version = "1.16.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-4UYBgxVwv/H21+aIKLzTDS9YVvJLrV3gzLIpIc7ryUc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools>=39.2,<72"' '"setuptools"'
'';
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytest7CheckHook ];
pythonImportsCheck = [ "makefun" ];
meta = {
homepage = "https://github.com/smarie/python-makefun";
description = "Small library to dynamically create python functions";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ veehaitch ];
};
}
|