nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 704 B view raw
1{ 2 lib, 3 python3, 4 fetchPypi, 5}: 6 7let 8 inherit (python3.pkgs) buildPythonPackage; 9in 10buildPythonPackage rec { 11 pname = "meerk40t-camera"; 12 version = "0.1.9"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-uGCBHdgWoorVX2XqMCg0YBweb00sQ9ZSbJe8rlGeovs="; 18 }; 19 20 postPatch = '' 21 sed -i '/meerk40t/d' setup.py 22 ''; 23 24 propagatedBuildInputs = with python3.pkgs; [ 25 opencv4 26 ]; 27 28 pythonImportsCheck = [ 29 "camera" 30 ]; 31 32 doCheck = false; 33 34 meta = with lib; { 35 description = "MeerK40t camera plugin"; 36 license = licenses.mit; 37 homepage = "https://github.com/meerk40t/meerk40t-camera"; 38 maintainers = with maintainers; [ hexa ]; 39 }; 40}