git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.makefun: init at 1.11.2
commit0ff4e2a61884c31f52d518ed31e3b77686d59217 authorVincent Haupert <mail@vincent-haupert.de> dateWed 7 Apr 2021, 17:25 (6 years ago) parent1072da3
2 files changed+34
pkgs/development/python-modules/makefun/default.nix+32 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/makefun/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ lib
2+, fetchPypi
3+, buildPythonPackage
4+, setuptools_scm
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "makefun";
9+ version = "1.11.2";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "sha256-2qNQpILtWLVyREPGUUMhkem5ewyDdDh50JExccaigIU=";
14+ };
15+
16+ nativeBuildInputs = [ setuptools_scm ];
17+
18+ # Disabling tests for now due to various (transitive) dependencies on modules
19+ # from @smarie which are, as of yet, not part of nixpkgs. Also introduces
20+ # a tricky dependency: makefun tests depend on pytest-cases, installing
21+ # pytest-cases depends on makefun.
22+ doCheck = false;
23+
24+ pythonImportsCheck = [ "makefun" ];
25+
26+ meta = with lib; {
27+ homepage = "https://github.com/smarie/python-makefun";
28+ description = "Small library to dynamically create python functions";
29+ license = licenses.bsd2;
30+ maintainers = with maintainers; [ veehaitch ];
31+ };
32+}
pkgs/top-level/python-packages.nix+2
@@ -4107,6 +4107,8 @@ in {
41074107
41084108 mail-parser = callPackage ../development/python-modules/mail-parser { };
41094109
4110+ makefun = callPackage ../development/python-modules/makefun { };
4111+
41104112 Mako = callPackage ../development/python-modules/Mako { };
41114113
41124114 managesieve = callPackage ../development/python-modules/managesieve { };