1
0
Fork 1
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:
Emily 2024-09-09 01:55:37 +01:00 committed by GitHub
commit 4774510ea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"