depot/third_party/nixpkgs/pkgs/development/python-modules/flametree/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

47 lines
1,001 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fontconfig
, matplotlib
, pandas
, pytestCheckHook
, weasyprint
}:
buildPythonPackage rec {
pname = "flametree";
version = "0.1.12";
format = "setuptools";
src = fetchFromGitHub {
owner = "Edinburgh-Genome-Foundry";
repo = "Flametree";
rev = "refs/tags/v${version}";
hash = "sha256-oyiuhsYouGDKRssKc0aYIoG32H7GS6Bn4RtI7/9N158=";
};
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 = with lib; {
description = "Python file and zip operations made easy";
homepage = "https://github.com/Edinburgh-Genome-Foundry/Flametree";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}