at 23.11-beta 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# build-system 6, cython_3 7, numpy 8, oldest-supported-numpy 9, setuptools 10, setuptools-scm 11, gnutar 12 13# native 14, libsoxr 15 16# tests 17, pytestCheckHook 18}: 19 20buildPythonPackage rec { 21 pname = "soxr"; 22 version = "0.3.6"; 23 format = "pyproject"; 24 25 src = fetchFromGitHub { 26 owner = "dofuuz"; 27 repo = "python-soxr"; 28 rev = "refs/tags/v${version}"; 29 fetchSubmodules = true; 30 hash = "sha256-H2sueQq32o/9EHENANKVoiWlFoSF88P0LZ7DfEh/Esg="; 31 }; 32 33 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 34 35 nativeBuildInputs = [ 36 cython_3 37 gnutar 38 numpy 39 oldest-supported-numpy 40 setuptools 41 setuptools-scm 42 ]; 43 44 pythonImportsCheck = [ 45 "soxr" 46 ]; 47 48 nativeCheckInputs = [ 49 pytestCheckHook 50 ]; 51 52 meta = with lib; { 53 description = "High quality, one-dimensional sample-rate conversion library"; 54 homepage = "https://github.com/dofuuz/python-soxr/tree/main"; 55 license = licenses.lgpl21Plus; 56 maintainers = with maintainers; [ hexa ]; 57 }; 58}