depot/third_party/nixpkgs/pkgs/development/python-modules/tracerite/default.nix

46 lines
981 B
Nix
Raw Normal View History

{
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; [ ];
};
}