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