depot/third_party/nixpkgs/pkgs/development/python-modules/makefun/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

38 lines
738 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "makefun";
version = "1.15.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-QLDxGLbe0NjXjHjx62ebi2skYuPBs+BfsbLajNRrSKU=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" ""
'';
nativeBuildInputs = [
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}