nixpkgs/pkgs/development/python-modules/pymunk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
876 B
Nix
Raw Normal View History

{ stdenv
, lib
2021-07-16 02:19:41 +02:00
, buildPythonPackage
, fetchPypi
, python
, cffi
, pytestCheckHook
, ApplicationServices
2021-07-16 02:19:41 +02:00
}:
buildPythonPackage rec {
pname = "pymunk";
2021-11-25 23:47:08 +01:00
version = "6.2.1";
2021-07-16 02:19:41 +02:00
src = fetchPypi {
inherit pname version;
extension = "zip";
2021-11-25 23:47:08 +01:00
sha256 = "18ae0f83ec2dc20892b98c84127ce9149ab40fa3c3120097377e1506884b27b8";
2021-07-16 02:19:41 +02:00
};
propagatedBuildInputs = [ cffi ];
buildInputs = lib.optionals stdenv.isDarwin [
ApplicationServices
];
2021-07-16 02:19:41 +02:00
preBuild = ''
${python.interpreter} setup.py build_ext --inplace
'';
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [
"pymunk/tests"
];
pythonImportsCheck = [ "pymunk" ];
2021-07-16 02:19:41 +02:00
meta = with lib; {
description = "2d physics library";
homepage = "https://www.pymunk.org";
license = with licenses; [ mit ];
2022-02-11 05:45:03 +01:00
maintainers = with maintainers; [ emilytrau ];
2021-08-26 03:19:54 +02:00
platforms = platforms.unix;
2021-07-16 02:19:41 +02:00
};
}