mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, jinja2
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, selenium
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "branca";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-visualization";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DH+XBj+VcS56+nAOGjjrKG0dnSKrqiU6N5vkILm+vSE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# We don't want flake8
|
|
rm setup.cfg
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
jinja2
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
selenium
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"branca"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Some tests require a browser
|
|
"tests/test_utilities.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_rendering_utf8_iframe"
|
|
"test_rendering_figure_notebook"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
}
|