depot/third_party/nixpkgs/pkgs/development/python-modules/tracerite/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

48 lines
900 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, html5tagger
, python
}:
buildPythonPackage rec {
pname = "tracerite";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "sanic-org";
repo = "tracerite";
rev = "v${version}";
hash = "sha256-At8wVR3EcHEi051BBfjb+sOhs93GyzWlEAjtehTMeNU=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
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";
license = licenses.unlicense;
maintainers = with maintainers; [ ];
};
}