1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 flit-core,
7 ipython,
8 matplotlib,
9 numpy,
10 pillow,
11}:
12
13buildPythonPackage rec {
14 pname = "mediapy";
15 version = "1.2.4";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-BSlHpnbr00kTWaaUOxRFWf3EFPdBsDoFx4+ntikeaxI=";
23 };
24
25 nativeBuildInputs = [ flit-core ];
26
27 propagatedBuildInputs = [
28 ipython
29 matplotlib
30 numpy
31 pillow
32 ];
33
34 pythonImportsCheck = [ "mediapy" ];
35
36 meta = with lib; {
37 description = "Read/write/show images and videos in an IPython notebook";
38 homepage = "https://github.com/google/mediapy";
39 changelog = "https://github.com/google/mediapy/releases/tag/v${version}";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ mcwitt ];
42 };
43}