mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
python312Packages.nbconflux: fix broken build by replacing versioned code (#340615)
This commit is contained in:
commit
4774510ea7
|
@ -2,27 +2,32 @@
|
|||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
isPy27,
|
||||
nbconvert,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
responses,
|
||||
setuptools,
|
||||
versioneer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbconflux";
|
||||
version = "0.7.0";
|
||||
format = "setuptools";
|
||||
disabled = isPy27; # no longer compatible with python 2 urllib
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Valassis-Digital-Media";
|
||||
owner = "vericast";
|
||||
repo = "nbconflux";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
versioneer
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
nbconvert
|
||||
requests
|
||||
];
|
||||
|
@ -37,6 +42,11 @@ buildPythonPackage rec {
|
|||
./setup-py.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# remove vendorized versioneer.py
|
||||
rm versioneer.py
|
||||
'';
|
||||
|
||||
JUPYTER_PATH = "${nbconvert}/share/jupyter";
|
||||
disabledTests = [
|
||||
"test_post_to_confluence"
|
||||
|
|
Loading…
Reference in a new issue