33 lines
656 B
Nix
33 lines
656 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, pythonOlder
|
||
|
, ipython
|
||
|
, matplotlib
|
||
|
, numpy
|
||
|
, pillow
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "mediapy";
|
||
|
version = "1.1.0";
|
||
|
|
||
|
disabled = pythonOlder "3.6";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
hash = "sha256-CejgiCiW7an1GpKB5MUiA1Alkigv3RmfTq0um9pc93E=";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|