2021-04-08 16:26:57 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2021-04-08 16:26:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "makefun";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.11.3";
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "033eed65e2c1804fca84161a38d1fc8bb8650d32a89ac1c5dc7e54b2b2c2e88c";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|