nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, fetchPypi
3, buildPythonPackage
4, setuptools-scm
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "makefun";
10 version = "1.13.1";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "985bb8b670ffbbb95d2a8aa996d318e6e9a3f26fc6f3ef2da93ebdf8f9c616bf";
15 };
16
17 postPatch = ''
18 substituteInPlace setup.cfg \
19 --replace "pytest-runner" ""
20 '';
21
22 nativeBuildInputs = [
23 setuptools-scm
24 ];
25
26 checkInputs = [
27 pytestCheckHook
28 ];
29
30 pythonImportsCheck = [ "makefun" ];
31
32 meta = with lib; {
33 homepage = "https://github.com/smarie/python-makefun";
34 description = "Small library to dynamically create python functions";
35 license = licenses.bsd2;
36 maintainers = with maintainers; [ veehaitch ];
37 };
38}