blob: 20dbb5af5acf41dedcf96708ca5e18fc99d9042e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fontconfig,
matplotlib,
pandas,
pytestCheckHook,
setuptools,
weasyprint,
}:
buildPythonPackage rec {
pname = "flametree";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Edinburgh-Genome-Foundry";
repo = "Flametree";
tag = "v${version}";
hash = "sha256-5vtDfGmSX5niMXLnMqmafhq6D1gxhxVS3xbOAvQs3Po=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
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"
];
pythonImportsCheck = [ "flametree" ];
meta = {
description = "Python file and zip operations made easy";
homepage = "https://github.com/Edinburgh-Genome-Foundry/Flametree";
changelog = "https://github.com/Edinburgh-Genome-Foundry/Flametree/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ prusnak ];
};
}
|