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