mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
44 lines
833 B
Nix
44 lines
833 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
flit-core,
|
|
ipython,
|
|
matplotlib,
|
|
numpy,
|
|
pillow,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mediapy";
|
|
version = "1.2.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QtmhqpPBg1ULgk27Tw3l2mGqXITbjwHwY6zR8juQ7wo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
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";
|
|
changelog = "https://github.com/google/mediapy/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mcwitt ];
|
|
};
|
|
}
|