blob: 9eb72a8910454d4669543ff20446b434940d84a6 (
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
|
{ lib
, fetchPypi
, buildPythonPackage
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "makefun";
version = "1.15.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-QLDxGLbe0NjXjHjx62ebi2skYuPBs+BfsbLajNRrSKU=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" ""
'';
nativeBuildInputs = [
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "makefun" ];
meta = with lib; {
homepage = "https://github.com/smarie/python-makefun";
description = "Small library to dynamically create python functions";
license = licenses.bsd2;
maintainers = with maintainers; [ veehaitch ];
};
}
|