2021-01-01 18:22:17 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-05-29 19:17:57 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fontconfig
|
|
|
|
, matplotlib
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, weasyprint
|
2021-01-01 18:22:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flametree";
|
|
|
|
version = "0.1.11";
|
|
|
|
|
2021-05-29 19:17:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Edinburgh-Genome-Foundry";
|
|
|
|
repo = "Flametree";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ynrk1ivl1vjiga0ayl8k89vs5il7i0pf9jz2ycn771c47szwk4x";
|
2021-01-01 18:22:17 +00:00
|
|
|
};
|
|
|
|
|
2021-05-29 19:17:57 +01: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-01 18:22:17 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "flametree" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python file and zip operations made easy";
|
2021-05-29 19:17:57 +01:00
|
|
|
homepage = "https://github.com/Edinburgh-Genome-Foundry/Flametree";
|
2021-01-01 18:22:17 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|