depot/third_party/nixpkgs/pkgs/development/python-modules/tracerite/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

50 lines
990 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; [ ];
};
}