blob: be05db41380a0381a0a239d759931a3e0cca4d87 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
python,
setuptools,
cffi,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pymunk";
version = "7.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-8wRYlyYTJbs+iShEAt1DuQjQpYcdwgEFl+NrQwnwIps=";
};
nativeBuildInputs = [ cffi ];
build-system = [ setuptools ];
dependencies = [ cffi ];
preBuild = ''
${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace
'';
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "pymunk/tests" ];
pythonImportsCheck = [ "pymunk" ];
meta = {
description = "2d physics library";
homepage = "https://www.pymunk.org";
changelog = "https://github.com/viblo/pymunk/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ emilytrau ];
platforms = lib.platforms.unix;
};
}
|