diff --git a/pkgs/development/python-modules/plotnine/default.nix b/pkgs/development/python-modules/plotnine/default.nix index 9c71ac58f555..e6cb98a30542 100644 --- a/pkgs/development/python-modules/plotnine/default.nix +++ b/pkgs/development/python-modules/plotnine/default.nix @@ -1,26 +1,36 @@ { lib -, fetchPypi -, buildPythonPackage -, matplotlib -, scipy -, patsy -, pandas -, statsmodels -, pytestCheckHook -, geopandas -, scikit-misc , adjusttext -, mizani }: +, buildPythonPackage +, fetchPypi +, geopandas +, matplotlib +, mizani +, pandas +, patsy +, pytestCheckHook +, pythonOlder +, scikit-misc +, scipy +, setuptools-scm +, statsmodels +}: buildPythonPackage rec { pname = "plotnine"; - version = "0.9.0"; + version = "0.10.1"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-DompMBXzxx1oRKx6qfsNoJuQj199+n3V1opcoysuvOo="; + hash = "sha256-2RKgS2ONz4IsUaZ4i4VmQjI0jVFfFR2zpkwAAZZvaEE="; }; + nativeBuildInputs = [ + setuptools-scm + ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=plotnine --cov-report=xml" ""