depot/third_party/nixpkgs/pkgs/development/python-modules/tracerite/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
981 B
Nix

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