567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
831 B
Nix
44 lines
831 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
flit-core,
|
|
ipython,
|
|
matplotlib,
|
|
numpy,
|
|
pillow,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mediapy";
|
|
version = "1.2.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-BSlHpnbr00kTWaaUOxRFWf3EFPdBsDoFx4+ntikeaxI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
ipython
|
|
matplotlib
|
|
numpy
|
|
pillow
|
|
];
|
|
|
|
pythonImportsCheck = [ "mediapy" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ mcwitt ];
|
|
};
|
|
}
|