blob: 55598a83ed44c6548015a46cbd5b1eb367ed1eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromSourcehut,
cmake,
cython_0,
setuptools,
alure2,
}:
buildPythonPackage rec {
pname = "palace";
version = "0.2.5";
pyproject = true;
src = fetchFromSourcehut {
owner = "~cnx";
repo = "palace";
rev = version;
sha256 = "1z0m35y4v1bg6vz680pwdicm9ssryl0q6dm9hfpb8hnifmridpcj";
};
# Nix uses Release CMake configuration instead of what is assumed by palace.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE \
--replace-fail "cmake_minimum_required(VERSION 2.6.0)" "cmake_minimum_required(VERSION 3.10)"
'';
build-system = [
cmake
cython_0
setuptools
];
dontUseCmakeConfigure = true;
propagatedBuildInputs = [ alure2 ];
doCheck = false; # FIXME: tests need an audio device
pythonImportsCheck = [ "palace" ];
meta = {
description = "Pythonic Audio Library and Codecs Environment";
homepage = "https://mcsinyx.gitlab.io/palace";
license = lib.licenses.lgpl3Plus;
maintainers = [ lib.maintainers.McSinyx ];
};
}
|