depot/third_party/nixpkgs/pkgs/development/python-modules/pyfakewebcam/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
724 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
opencv4,
}:
buildPythonPackage rec {
pname = "pyfakewebcam";
version = "0.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "152nglscxmv7600i1i2gahny5z0bybnqgq3npak8npb0lsnwxn1a";
};
propagatedBuildInputs = [
numpy
opencv4
];
# No tests are available
doCheck = false;
pythonImportsCheck = [ "pyfakewebcam" ];
meta = with lib; {
description = "Library for writing RGB frames to a fake webcam device on Linux";
homepage = "https://github.com/jremmons/pyfakewebcam";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.linux;
};
}