failed attempt at packages cecelia5

This commit is contained in:
Matt Nish-Lapidus 2024-12-20 13:45:48 -05:00
parent a4cbf82744
commit 70f0da2d99
5 changed files with 106 additions and 7 deletions

View file

@ -0,0 +1,46 @@
{
lib,
python311,
fetchFromGitHub,
pkgs
}:
let
python311 = pkgs.python311.override {
self = python311;
packageOverrides = pyfinal: pyprev: {
pyo = pyfinal.callPackage ./pyo.nix { };
};
};
in
python311.pkgs.buildPythonApplication rec {
pname = "cecilia5";
version = "5.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "belangeo";
repo = "cecilia5";
rev = version;
hash = "sha256-8WnzVSaDz4x6JgRGSI4Ra60hDS1fy+oCRLdyQIfq6WI=";
};
build-system = [
python311.pkgs.setuptools
python311.pkgs.wheel
python311.pkgs.pyo
python311.pkgs.wxpython
python311.pkgs.numpy
];
pythonImportsCheck = [
"cecilia5"
];
meta = {
description = "Ear-bending noises and music";
homepage = "https://github.com/belangeo/cecilia5";
mainProgram = "cecilia5";
};
}

35
packages/cecelia5/pyo.nix Normal file
View file

@ -0,0 +1,35 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
wheel,
pkgs
}:
buildPythonPackage rec {
pname = "pyo";
version = "1.0.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-4ELZR6C2QbQA4ij54h7soh34v0iVxtvQE/h2ONdyjjE=";
};
propagatedBuildInputs = with pkgs; [
portaudio
libsndfile
portmidi
liblo
];
# do not run tests
doCheck = false;
# specific to buildPythonPackage, see its reference
pyproject = true;
build-system = [
setuptools
wheel
];
}