1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
selenium,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "branca";
|
|
version = "0.8.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-visualization";
|
|
repo = "branca";
|
|
tag = "v${version}";
|
|
hash = "sha256-Gnr3ONqWpUNOGiOlyq77d9PxcDT8TjqTHYBGxH+V+xc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# We don't want flake8
|
|
rm setup.cfg
|
|
'';
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [ jinja2 ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
selenium
|
|
];
|
|
|
|
pythonImportsCheck = [ "branca" ];
|
|
|
|
disabledTestPaths = [
|
|
# Some tests require a browser
|
|
"tests/test_utilities.py"
|
|
"tests/test_iframe.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_rendering_utf8_iframe"
|
|
"test_rendering_figure_notebook"
|
|
];
|
|
|
|
meta = {
|
|
description = "Generate complex HTML+JS pages with Python";
|
|
homepage = "https://github.com/python-visualization/branca";
|
|
changelog = "https://github.com/python-visualization/branca/blob/v${version}/CHANGES.txt";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = [ ];
|
|
};
|
|
}
|