2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, ipython
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pillow
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mediapy";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.1.2";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-uz+Pv3DvmhDajIqNpCj+2HsRT7Dh7Ks5yryhiEa8KOI=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ipython matplotlib numpy pillow ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mediapy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Read/write/show images and videos in an IPython notebook";
|
|
|
|
homepage = "https://github.com/google/mediapy";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mcwitt ];
|
|
|
|
};
|
|
|
|
}
|