mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 12:39:54 +03:00
Merge pull request #314010 from GaetanLepage/qgrid
python311Packages.qgrid: fix python 3.12 compatibility
This commit is contained in:
commit
852091bb10
@ -4,6 +4,7 @@
|
|||||||
fetchpatch,
|
fetchpatch,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
ipywidgets,
|
ipywidgets,
|
||||||
|
looseversion,
|
||||||
notebook,
|
notebook,
|
||||||
pandas,
|
pandas,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
@ -12,7 +13,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "qgrid";
|
pname = "qgrid";
|
||||||
version = "1.3.1";
|
version = "1.3.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -28,8 +29,14 @@ buildPythonPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
postPatch = ''
|
||||||
|
substituteInPlace qgrid/grid.py \
|
||||||
|
--replace-fail "from distutils.version import LooseVersion" "from looseversion import LooseVersion"
|
||||||
|
'';
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
ipywidgets
|
ipywidgets
|
||||||
|
looseversion
|
||||||
notebook
|
notebook
|
||||||
pandas
|
pandas
|
||||||
];
|
];
|
||||||
@ -48,10 +55,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
pythonImportsCheck = [ "qgrid" ];
|
pythonImportsCheck = [ "qgrid" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "An interactive grid for sorting, filtering, and editing DataFrames in Jupyter notebooks";
|
description = "An interactive grid for sorting, filtering, and editing DataFrames in Jupyter notebooks";
|
||||||
homepage = "https://github.com/quantopian/qgrid";
|
homepage = "https://github.com/quantopian/qgrid";
|
||||||
license = licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with maintainers; [ GaetanLepage ];
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user