nixpkgs/pkgs/development/python-modules/makefun/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
734 B
Nix
Raw Normal View History

2021-04-07 15:25:03 +00:00
{ lib
, fetchPypi
, buildPythonPackage
, setuptools-scm
, pytestCheckHook
2021-04-07 15:25:03 +00:00
}:
buildPythonPackage rec {
pname = "makefun";
version = "1.15.0";
2021-04-07 15:25:03 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-WxEOcz2U96SdisJ7Hi1A8rsFAemMHYJeDZMtJpIN1d8=";
2021-04-07 15:25:03 +00:00
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" ""
'';
2021-04-07 15:25:03 +00:00
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
];
2021-04-07 15:25:03 +00:00
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 ];
};
}