2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
# Python Inputs
|
2024-04-21 15:54:59 +00:00
|
|
|
, jupyter-packaging
|
|
|
|
, jupyterlab
|
|
|
|
, setuptools
|
|
|
|
, wheel
|
2020-04-24 23:36:52 +00:00
|
|
|
, ipyvue
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipyvuetify";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.9.4";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# GitHub version tries to run npm (Node JS)
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-wpwfN68wpj2+lLb4w0erAZYa7OrbVhNfGMv0635oiVs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# 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 '"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
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ ipyvue ];
|
|
|
|
|
|
|
|
doCheck = false; # no tests on PyPi/GitHub
|
|
|
|
pythonImportsCheck = [ "ipyvuetify" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter widgets based on Vuetify UI Components.";
|
|
|
|
homepage = "https://github.com/mariobuikhuizen/ipyvuetify";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|