about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/makefun/default.nix
blob: 731226fdbfb36d092c0c54d5f5cebb4f42ae1748 (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
{ lib
, fetchPypi
, buildPythonPackage
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "makefun";
  version = "1.11.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-2qNQpILtWLVyREPGUUMhkem5ewyDdDh50JExccaigIU=";
  };

  nativeBuildInputs = [ setuptools-scm ];

  # Disabling tests for now due to various (transitive) dependencies on modules
  # from @smarie which are, as of yet, not part of nixpkgs. Also introduces
  # a tricky dependency: makefun tests depend on pytest-cases, installing
  # pytest-cases depends on makefun.
  doCheck = false;

  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 ];
  };
}