meerk40t-camera: extract to top-level

It confuses the update script, preventing automatic updates through
nixpkgs-update.
This commit is contained in:
Martin Weinelt 2022-11-13 13:59:00 +01:00
parent b60ba3cc7a
commit 86b27c138d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
3 changed files with 41 additions and 32 deletions

View File

@ -0,0 +1,38 @@
{ lib
, python3
}:
let
inherit (python3.pkgs) buildPythonPackage fetchPypi;
in
buildPythonPackage rec {
pname = "meerk40t-camera";
version = "0.1.9";
format = "setuptools";
src = python3.pkgs.fetchPypi {
inherit pname version;
hash = "sha256-uGCBHdgWoorVX2XqMCg0YBweb00sQ9ZSbJe8rlGeovs=";
};
postPatch = ''
sed -i '/meerk40t/d' setup.py
'';
propagatedBuildInputs = with python3.pkgs; [
opencv4
];
pythonImportsCheck = [
"camera"
];
doCheck = false;
meta = with lib; {
description = "MeerK40t camera plugin";
license = licenses.mit;
homepage = "https://github.com/meerk40t/meerk40t-camera";
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, meerk40t-camera
, python3
, gtk3
, wrapGAppsHook
@ -7,38 +8,6 @@
let
inherit (python3.pkgs) buildPythonApplication buildPythonPackage fetchPypi;
meerk40t-camera = buildPythonPackage rec {
pname = "meerk40t-camera";
version = "0.1.9";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-uGCBHdgWoorVX2XqMCg0YBweb00sQ9ZSbJe8rlGeovs=";
};
postPatch = ''
sed -i '/meerk40t/d' setup.py
'';
propagatedBuildInputs = with python3.pkgs; [
opencv4
];
pythonImportsCheck = [
"camera"
];
doCheck = false;
meta = with lib; {
description = "MeerK40t camera plugin";
license = licenses.mit;
homepage = "https://github.com/meerk40t/meerk40t-camera";
maintainers = with maintainers; [ hexa ];
};
};
in
buildPythonApplication rec {
pname = "MeerK40t";

View File

@ -29289,6 +29289,8 @@ with pkgs;
meerk40t = callPackage ../applications/misc/meerk40t { };
meerk40t-camera = callPackage ../applications/misc/meerk40t/camera.nix { };
musikcube = callPackage ../applications/audio/musikcube {
inherit (darwin.apple_sdk.frameworks) Cocoa SystemConfiguration;
};