2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools-scm,
|
|
|
|
html5tagger,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tracerite";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.1.1";
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sanic-org";
|
|
|
|
repo = "tracerite";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-rI1MNdYl/P64tUHyB3qV9gfLbGbCVOXnEFoqFTkaqgg=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ html5tagger ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp tracerite/style.css $out/${python.sitePackages}/tracerite
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "tracerite" ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "Tracebacks for Humans in Jupyter notebooks";
|
2023-08-10 07:59:29 +00:00
|
|
|
homepage = "https://github.com/sanic-org/tracerite";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/sanic-org/tracerite/releases/tag/v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|