Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / makefun / default.nix
blobbc26604826acb11d79c1e80e14923f71593843ca
1 { lib
2 , fetchPypi
3 , buildPythonPackage
5 # build-system
6 , setuptools
7 , setuptools-scm
9 # tests
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "makefun";
15   version = "1.15.2";
16   pyproject = true;
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-FvKis02e4MK1eMlgoYCMl04oIs959um5xFWqzhCILUU=";
21   };
23   postPatch = ''
24     substituteInPlace setup.cfg \
25       --replace "pytest-runner" ""
26   '';
28   nativeBuildInputs = [
29     setuptools
30     setuptools-scm
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [ "makefun" ];
39   meta = with lib; {
40     homepage = "https://github.com/smarie/python-makefun";
41     description = "Small library to dynamically create python functions";
42     license = licenses.bsd2;
43     maintainers = with maintainers; [ veehaitch ];
44   };