1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fontconfig
5, matplotlib
6, pandas
7, pytestCheckHook
8, weasyprint
9}:
10
11buildPythonPackage rec {
12 pname = "flametree";
13 version = "0.1.12";
14
15 src = fetchFromGitHub {
16 owner = "Edinburgh-Genome-Foundry";
17 repo = "Flametree";
18 rev = "refs/tags/v${version}";
19 sha256 = "sha256-oyiuhsYouGDKRssKc0aYIoG32H7GS6Bn4RtI7/9N158=";
20 };
21
22 checkInputs = [
23 matplotlib
24 pandas
25 pytestCheckHook
26 weasyprint
27 ];
28
29 preCheck = ''
30 export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
31 '';
32
33 disabledTests = [
34 # AssertionError, https://github.com/Edinburgh-Genome-Foundry/Flametree/issues/9
35 "test_weasyprint"
36 ];
37
38 pythonImportsCheck = [ "flametree" ];
39
40 meta = with lib; {
41 description = "Python file and zip operations made easy";
42 homepage = "https://github.com/Edinburgh-Genome-Foundry/Flametree";
43 license = licenses.mit;
44 maintainers = with maintainers; [ prusnak ];
45 };
46}