python3Packages.pydeck: fix build (#172055)

Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com>
main
Phillip Cloud 2 years ago committed by GitHub
parent 51d859cdab
commit 8ed605d66d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      pkgs/development/python-modules/pydeck/default.nix

@ -1,11 +1,33 @@
{ lib, buildPythonPackage, fetchPypi, ipykernel, ipywidgets, pythonOlder, pytestCheckHook, pandas }: { lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, ipykernel
, ipywidgets
, pythonOlder
, pytestCheckHook
, pandas
, jinja2
, numpy
, traitlets
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pydeck"; pname = "pydeck";
version = "0.7.1"; version = "0.7.1";
format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
patches = [
# fixes build with latest setuptools
(fetchpatch {
url = "https://github.com/visgl/deck.gl/commit/9e68f73b28aa3bf0f2a887a4d8ccd2dc35677039.patch";
sha256 = "sha256-YVVoVbVdY5nV+17OwYIs9AwKGyzgKZHi655f4BLcdMU=";
stripLen = 2;
})
];
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "907601c99f7510e16d27d7cb62bfa145216d166a2b5c9c50cfe2b65b032ebd2e"; sha256 = "907601c99f7510e16d27d7cb62bfa145216d166a2b5c9c50cfe2b65b032ebd2e";
@ -14,12 +36,16 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pydeck" ]; pythonImportsCheck = [ "pydeck" ];
checkInputs = [ pytestCheckHook pandas ]; checkInputs = [ pytestCheckHook pandas ];
# tries to start a jupyter server # tries to start a jupyter server
disabledTests = [ "test_nbconvert" ]; disabledTests = [ "test_nbconvert" ];
propagatedBuildInputs = [ propagatedBuildInputs = [
ipykernel ipykernel
ipywidgets ipywidgets
jinja2
numpy
traitlets
]; ];
meta = with lib; { meta = with lib; {

Loading…
Cancel
Save