diff --git a/pkgs/development/python-modules/colorcet/default.nix b/pkgs/development/python-modules/colorcet/default.nix index 207653375144..6135730beb00 100644 --- a/pkgs/development/python-modules/colorcet/default.nix +++ b/pkgs/development/python-modules/colorcet/default.nix @@ -1,12 +1,11 @@ { lib , buildPythonPackage , fetchPypi +, nbsmoke , param , pyct -, nbsmoke -, flake8 -, pytest , pytest-mpl +, pytestCheckHook }: buildPythonPackage rec { @@ -24,25 +23,29 @@ buildPythonPackage rec { ]; checkInputs = [ - pytest - flake8 pytest-mpl + pytestCheckHook ]; - checkPhase = '' + preCheck = '' export HOME=$(mktemp -d) mkdir -p $HOME/.config/matplotlib echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc ln -s $HOME/.config/matplotlib $HOME/.matplotlib - - # requires other backends to be available - pytest colorcet -k 'not matplotlib_default_colormap_plot' ''; + disabledTests = [ + "matplotlib_default_colormap_plot" + ]; + + pythonImportsCheck = [ + "colorcet" + ]; + meta = with lib; { description = "Collection of perceptually uniform colormaps"; homepage = "https://colorcet.pyviz.org"; license = licenses.cc-by-40; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } diff --git a/pkgs/development/python-modules/hvplot/default.nix b/pkgs/development/python-modules/hvplot/default.nix index 271b3923033c..22be0ff75c9f 100644 --- a/pkgs/development/python-modules/hvplot/default.nix +++ b/pkgs/development/python-modules/hvplot/default.nix @@ -1,18 +1,10 @@ { lib -, buildPythonPackage -, fetchPypi , bokeh +, buildPythonPackage +, colorcet +, fetchPypi , holoviews , pandas -, pytest -, parameterized -, nbsmoke -, flake8 -, coveralls -, xarray -, networkx -, streamz -, colorcet , pythonImportsCheckHook }: @@ -29,7 +21,6 @@ buildPythonPackage rec { pythonImportsCheckHook ]; - checkInputs = [ pytest parameterized nbsmoke flake8 coveralls xarray networkx streamz ]; propagatedBuildInputs = [ bokeh colorcet @@ -37,11 +28,7 @@ buildPythonPackage rec { pandas ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - - # many tests require a network connection + # Many tests require a network connection doCheck = false; pythonImportsCheck = [ @@ -52,6 +39,6 @@ buildPythonPackage rec { description = "A high-level plotting API for the PyData ecosystem built on HoloViews"; homepage = "https://hvplot.pyviz.org"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } diff --git a/pkgs/development/python-modules/intake/default.nix b/pkgs/development/python-modules/intake/default.nix index 361469f540e1..26448f3a21d2 100644 --- a/pkgs/development/python-modules/intake/default.nix +++ b/pkgs/development/python-modules/intake/default.nix @@ -1,67 +1,71 @@ { lib -, buildPythonPackage -, fetchPypi , appdirs +, bokeh +, buildPythonPackage , dask +, entrypoints +, fetchFromGitHub +, fsspec , holoviews , hvplot -, fsspec +, intake-parquet , jinja2 , msgpack , msgpack-numpy , numpy , pandas , panel -, intake-parquet , pyarrow , pytestCheckHook -, pythonOlder , python-snappy +, pythonOlder +, pyyaml , requests -, ruamel_yaml -, six , tornado }: buildPythonPackage rec { pname = "intake"; - version = "0.6.3"; + version = "0.6.4"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - sha256 = "f64543353f30d9440b953984f78b7a0954e5756d70c64243609d307ba488014f"; + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = version; + sha256 = "194cdd6lx92zcpkn3wgm490kxvw0c58ziix8hcihsr5ayfr1wdsl"; }; propagatedBuildInputs = [ appdirs + bokeh dask + entrypoints + fsspec holoviews hvplot jinja2 - msgpack-numpy msgpack + msgpack-numpy numpy pandas panel + pyarrow python-snappy + pyyaml requests - ruamel_yaml - six tornado ]; checkInputs = [ - fsspec intake-parquet - pyarrow pytestCheckHook ]; postPatch = '' - # Is in setup_requires but not used in setup.py... - substituteInPlace setup.py --replace "'pytest-runner'" "" + substituteInPlace setup.py \ + --replace "'pytest-runner'" "" ''; # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball @@ -72,7 +76,7 @@ buildPythonPackage rec { ''; disabledTests = [ - # disable tests which touch network and are broken + # Disable tests which touch network and are broken "test_discover" "test_filtered_compressed_cache" "test_get_dir" @@ -82,6 +86,10 @@ buildPythonPackage rec { "test_remote_arr" ]; + pythonImportsCheck = [ + "intake" + ]; + meta = with lib; { description = "Data load and catalog system"; homepage = "https://github.com/ContinuumIO/intake"; diff --git a/pkgs/development/python-modules/param/default.nix b/pkgs/development/python-modules/param/default.nix index 0ae362dd28ac..23c9bc9c3933 100644 --- a/pkgs/development/python-modules/param/default.nix +++ b/pkgs/development/python-modules/param/default.nix @@ -1,28 +1,38 @@ { lib , buildPythonPackage -, fetchPypi -, flake8 -, nose +, fetchFromGitHub +, pytestCheckHook }: buildPythonPackage rec { pname = "param"; - version = "1.11.1"; + version = "1.12.0"; - src = fetchPypi { - inherit pname version; - sha256 = "b9857df01495bd55ddafb214fd1ed017d20699ce42ec2a0fd190d99caa03099f"; + src = fetchFromGitHub { + owner = "holoviz"; + repo = pname; + rev = "v${version}"; + sha256 = "02zmd4bwyn8b4q1l9jgddc70ii1i7bmynacanl1cvbr6la4v9b2c"; }; - checkInputs = [ flake8 nose ]; + checkInputs = [ + pytestCheckHook + ]; - # tests not included with pypi release - doCheck = false; + postPatch = '' + # Version is not set properly + substituteInPlace setup.py \ + --replace 'version=get_setup_version("param"),' 'version="${version}",' + ''; + + pythonImportsCheck = [ + "param" + ]; meta = with lib; { description = "Declarative Python programming using Parameters"; homepage = "https://github.com/pyviz/param"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } diff --git a/pkgs/development/python-modules/pyct/default.nix b/pkgs/development/python-modules/pyct/default.nix index b2314e6edfeb..4538410c3623 100644 --- a/pkgs/development/python-modules/pyct/default.nix +++ b/pkgs/development/python-modules/pyct/default.nix @@ -3,9 +3,9 @@ , fetchPypi , isPy27 , param +, pytestCheckHook , pyyaml , requests -, pytest }: buildPythonPackage rec { @@ -17,22 +17,26 @@ buildPythonPackage rec { sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7"; }; - doCheck = !isPy27; - checkInputs = [ pytest ]; propagatedBuildInputs = [ param pyyaml requests ]; - checkPhase = '' - pytest - ''; + checkInputs = [ + pytestCheckHook + ]; + + doCheck = !isPy27; + + pythonImportsCheck = [ + "pyct" + ]; meta = with lib; { - description = "Cli for python common tasks for users"; + description = "ClI for Python common tasks for users"; homepage = "https://github.com/pyviz/pyct"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }