2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-06-01 10:57:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fontconfig
|
|
|
|
, matplotlib
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, weasyprint
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flametree";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "0.1.12";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Edinburgh-Genome-Foundry";
|
|
|
|
repo = "Flametree";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-oyiuhsYouGDKRssKc0aYIoG32H7GS6Bn4RtI7/9N158=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
checkInputs = [
|
|
|
|
matplotlib
|
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
|
|
|
weasyprint
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError, https://github.com/Edinburgh-Genome-Foundry/Flametree/issues/9
|
|
|
|
"test_weasyprint"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "flametree" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python file and zip operations made easy";
|
2021-06-01 10:57:12 +00:00
|
|
|
homepage = "https://github.com/Edinburgh-Genome-Foundry/Flametree";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|