nixpkgs/pkgs/development/python-modules/debuglater/default.nix
2022-08-23 20:28:20 +02:00

52 lines
906 B
Nix

{ lib
, buildPythonPackage
, colorama
, dill
, fetchFromGitHub
, numpy
, pandas
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "debuglater";
version = "1.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ploomber";
repo = pname;
rev = version;
hash = "sha256-0fnWXmrlZjlLFGbiLC7HuDgMEM6OJVn8ajjNRqFg3Lc=";
};
propagatedBuildInputs = [
colorama
];
passthru.optional-dependencies = {
all = [
dill
];
};
checkInputs = [
numpy
pandas
pytestCheckHook
] ++ passthru.optional-dependencies.all;
pythonImportsCheck = [
"debuglater"
];
meta = with lib; {
description = "Module for post-mortem debugging of Python programs";
homepage = "https://github.com/ploomber/debuglater";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}