blob: 212e8e54dd24e38d6c3f9db26093026e46ff7046 (
plain) (
blame)
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
|
{
stdenv,
lib,
buildPythonPackage,
fetchPypi,
python,
cffi,
pytestCheckHook,
pythonOlder,
ApplicationServices,
}:
buildPythonPackage rec {
pname = "pymunk";
version = "6.5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-AV6upaZcnbKmQm9tTItRB6LpckappjdHvMH/awn/KeE=";
};
propagatedBuildInputs = [ cffi ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ ApplicationServices ];
preBuild = ''
${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace
'';
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "pymunk/tests" ];
pythonImportsCheck = [ "pymunk" ];
meta = with lib; {
description = "2d physics library";
homepage = "https://www.pymunk.org";
changelog = "https://github.com/viblo/pymunk/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.unix;
};
}
|