20 buildPythonPackage rec {
23 format = "setuptools";
26 inherit pname version;
27 hash = "sha256-qqNGemDB0aagCXjrECuh6kLksf+KujPejpnXVqFG8GY=";
30 propagatedBuildInputs = [
40 sed -i 's/opencv-python//g' requirements.txt
43 # pythonImportsCheck = [ "bpycv" ]; # this import depends on bpy that is only available inside blender
47 render = runCommand "bpycv-render-test" {
48 BPY_EXAMPLE_DATA = fetchFromGitHub {
50 repo = "bpycv_example_data";
51 hash = "sha256-dGb6KvbXTGTu5f4AqhA+i4AwTqBoR5SdXk0vsMEcD3Q=";
52 rev = "6ce0e65c107d572011394da16ffdf851e988dbb4";
55 ${blender.withPackages (ps: [ps.bpycv])}/bin/blender-wrapped -b -P ${./bpycv-test.py}
60 description = "Computer vision utils for Blender";
61 homepage = "https://github.com/DIYer22/bpycv";
62 license = licenses.mit;
63 maintainers = [ maintainers.lucasew ];
64 broken = stdenv.isAarch64;
65 inherit (blender.meta) platforms;