biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / tracerite / default.nix
blobdd51ff779e2bbd08ca8586e0f2494feb54db9c2f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools-scm,
6   html5tagger,
7   python,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "tracerite";
13   version = "1.1.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "sanic-org";
20     repo = "tracerite";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-rI1MNdYl/P64tUHyB3qV9gfLbGbCVOXnEFoqFTkaqgg=";
23   };
25   nativeBuildInputs = [ setuptools-scm ];
27   propagatedBuildInputs = [ html5tagger ];
29   postInstall = ''
30     cp tracerite/style.css $out/${python.sitePackages}/tracerite
31   '';
33   # no tests
34   doCheck = false;
36   pythonImportsCheck = [ "tracerite" ];
38   meta = with lib; {
39     description = "Tracebacks for Humans in Jupyter notebooks";
40     homepage = "https://github.com/sanic-org/tracerite";
41     changelog = "https://github.com/sanic-org/tracerite/releases/tag/v${version}";
42     license = licenses.unlicense;
43     maintainers = [ ];
44   };