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