mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
python312Packages.ipyvuetify: 1.9.4 -> 1.10.0
This commit is contained in:
parent
116fe572fa
commit
f9e28e44d9
@ -3,45 +3,31 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
# Python Inputs
|
||||
jupyter-packaging,
|
||||
jupyterlab,
|
||||
setuptools,
|
||||
wheel,
|
||||
ipyvue,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ipyvuetify";
|
||||
version = "1.9.4";
|
||||
version = "1.10.0";
|
||||
pyproject = true;
|
||||
|
||||
# GitHub version tries to run npm (Node JS)
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-wpwfN68wpj2+lLb4w0erAZYa7OrbVhNfGMv0635oiVs=";
|
||||
hash = "sha256-h97mqq3zFu4n7Ymnmz08P14PLltjjaBoFzYEhTJUWsE=";
|
||||
};
|
||||
|
||||
# drop pynpm which tries to install node_modules
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "jupyter_packaging~=0.7.9" "jupyter_packaging" \
|
||||
--replace-fail "jupyterlab~=3.0" "jupyterlab" \
|
||||
--replace-fail '"jupyterlab~=4.0",' "" \
|
||||
--replace-fail '"pynpm"' ""
|
||||
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "from pynpm import NPMPackage" "" \
|
||||
--replace-fail "from generate_source import generate_source" "" \
|
||||
--replace-fail 'setup(cmdclass={"egg_info": js_prerelease(egg_info)})' 'setup()'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
jupyter-packaging
|
||||
jupyterlab
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [ ipyvue ];
|
||||
dependencies = [ ipyvue ];
|
||||
|
||||
doCheck = false; # no tests on PyPi/GitHub
|
||||
pythonImportsCheck = [ "ipyvuetify" ];
|
||||
|
Loading…
Reference in New Issue
Block a user