Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools-scm, 6 html5tagger, 7 setuptools, 8 python, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "tracerite"; 14 version = "1.1.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "sanic-org"; 21 repo = "tracerite"; 22 tag = "v${version}"; 23 hash = "sha256-rI1MNdYl/P64tUHyB3qV9gfLbGbCVOXnEFoqFTkaqgg="; 24 }; 25 26 build-system = [ setuptools-scm ]; 27 28 dependencies = [ 29 html5tagger 30 setuptools 31 ]; 32 33 postInstall = '' 34 cp tracerite/style.css $out/${python.sitePackages}/tracerite 35 ''; 36 37 # no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ "tracerite" ]; 41 42 meta = with lib; { 43 description = "Tracebacks for Humans in Jupyter notebooks"; 44 homepage = "https://github.com/sanic-org/tracerite"; 45 changelog = "https://github.com/sanic-org/tracerite/releases/tag/v${version}"; 46 license = licenses.unlicense; 47 maintainers = with maintainers; [ p0lyw0lf ]; 48 }; 49}