depot/third_party/nixpkgs/pkgs/development/python-modules/palace/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

52 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromSourcehut,
pythonOlder,
cmake,
cython_0,
setuptools,
alure2,
}:
buildPythonPackage rec {
pname = "palace";
version = "0.2.5";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromSourcehut {
owner = "~cnx";
repo = pname;
rev = version;
sha256 = "1z0m35y4v1bg6vz680pwdicm9ssryl0q6dm9hfpb8hnifmridpcj";
};
# Nix uses Release CMake configuration instead of what is assumed by palace.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE
'';
build-system = [
cmake
cython_0
setuptools
];
dontUseCmakeConfigure = true;
propagatedBuildInputs = [ alure2 ];
doCheck = false; # FIXME: tests need an audio device
pythonImportsCheck = [ "palace" ];
meta = with lib; {
description = "Pythonic Audio Library and Codecs Environment";
homepage = "https://mcsinyx.gitlab.io/palace";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.McSinyx ];
};
}