at master 976 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 python, 6 setuptools, 7 cffi, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "pymunk"; 14 version = "7.1.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-8wRYlyYTJbs+iShEAt1DuQjQpYcdwgEFl+NrQwnwIps="; 22 }; 23 24 nativeBuildInputs = [ cffi ]; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ cffi ]; 29 30 preBuild = '' 31 ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace 32 ''; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 enabledTestPaths = [ "pymunk/tests" ]; 37 38 pythonImportsCheck = [ "pymunk" ]; 39 40 meta = with lib; { 41 description = "2d physics library"; 42 homepage = "https://www.pymunk.org"; 43 changelog = "https://github.com/viblo/pymunk/releases/tag/${version}"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ emilytrau ]; 46 platforms = platforms.unix; 47 }; 48}