Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / tracerite / default.nix
blob9b98e986bb3621da36a1b4128a5e998d447dfd06
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools-scm
5 , html5tagger
6 , python
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "tracerite";
12   version = "1.1.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "sanic-org";
19     repo = "tracerite";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-rI1MNdYl/P64tUHyB3qV9gfLbGbCVOXnEFoqFTkaqgg=";
22   };
24   nativeBuildInputs = [
25     setuptools-scm
26   ];
28   propagatedBuildInputs = [
29     html5tagger
30   ];
32   postInstall = ''
33     cp tracerite/style.css $out/${python.sitePackages}/tracerite
34   '';
36   # no tests
37   doCheck = false;
39   pythonImportsCheck = [
40     "tracerite"
41   ];
43   meta = with lib; {
44     description = "Tracebacks for Humans in Jupyter notebooks";
45     homepage = "https://github.com/sanic-org/tracerite";
46     changelog = "https://github.com/sanic-org/tracerite/releases/tag/v${version}";
47     license = licenses.unlicense;
48     maintainers = with maintainers; [ ];
49   };